semvec/pypi-packages huggingface dataset:
torchshape 0.0.8
Calculates the output shape of Pytorch operations
Requires Python: >=3.6

# Torchshape
Calculates the output shape of Pytorch operations

How to use:

1) Install torchshape package:

    ``pip install torchshape``

2) Import torchshape package:

    ``from torchshape import tensorshape``
    
3) Call tensorshape function in your code:

    ``outshape = tensorshape(op, inshape)``
    
where op is a torch.nn operation (see the [list](#list-of-supported-operations) of supported operations), inshape and outshape are tuples.

See [lenet.py](lenet.py) for example usage.

## List of supported operations
- nn.Conv2d
- nn.Linear
- nn.MaxPool2d
- nn.AvgPool2d
- nn.Flatten
bammix 1.0.0
bammix
Requires Python: >=3.6.0

# bammix
Summarise nucleotide counts at a set of positions in a BAM file to search for mixtures

<img src="./docs/nucleotide_plot.png" width = "700">

### Usage
```
usage: bammix -b bam_file.bam -p positions [options]

bammix

optional arguments:
  -h, --help            show this help message and exit
  -b BAM, --bam BAM     BAM file to be examined
  -p POSITIONS [POSITIONS ...], --positions POSITIONS [POSITIONS ...]
                        Set of positions to be checked
  -r REFERENCE, --reference REFERENCE
                        Name of reference the reads were mapped against, default MN908947.3
  -q BASE_QUALITY, --base_quality BASE_QUALITY
                        Minimum base quality to include a base in counts, default is to include all bases regardless of quality
  -m MAPPING_QUALITY, --mapping_quality MAPPING_QUALITY
                        Minimum mapping quality to include a read in counts, default is to include all reads
  -o O                  Optional prefix for output files, default is no prefix
```

### Install
```
pip install bammix
```