Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ conda install -c bioconda samplot
## Examples:

Samplot requires either BAM files or CRAM files as primary input. If you use
CRAM, you'll also need a reference genome like one used the the [1000 Genomes
Project](ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/technical/reference/human_g1k_v37.fasta.gz).
CRAM, you'll also need a reference genome. You can easily acquire a reference genome file with [GGD](https://github.com/gogetdata/ggd-cli), which is also available from conda.

### Basic use case
Using data from NA12878, NA12889, and NA12890 in the
Expand Down
2 changes: 1 addition & 1 deletion samplot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env python
__version__ = "1.0.17"
__version__ = "1.0.18"
4 changes: 3 additions & 1 deletion samplot/samplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,9 @@ def bam_file(bam):
parser.error("alignment file {} is not in SAM/BAM/CRAM format".format(bam))
idx_type = idx_options[options.index(ext)]
#try the type-specific index name
if not os.path.isfile(bam + "." + idx_type):
picard_bam = os.path.splitext(bam)[0]
if (not os.path.isfile(bam + "." + idx_type) and
not os.path.isfile(picard_bam + "." + idx_type)):
idx_type = idx_options[3]
#try the csi index name
if not os.path.isfile(bam + "." + idx_type):
Expand Down