Skip to content

Commit

Permalink
Merge branch 'latest' of github.com:dib-lab/genome-grist into latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed May 24, 2021
2 parents 6910577 + 3b99cb4 commit ec5d2e7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ channels:
dependencies:
- mamba
- screed>=1.0.5,<2
- sourmash>=4.1,<5
- sourmash>=4.1.1,<5
4 changes: 3 additions & 1 deletion genome_grist/conf/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ rule sourmash_prefetch_gather_wc:
db = SOURMASH_DB_LIST,
output:
matches = outdir + "/genbank/{sample}.x.genbank.prefetch.zip",
csv = outdir + "/genbank/{sample}.x.genbank.prefetch.csv",
resources:
mem_mb=int(PREFETCH_MEMORY / 1e3)
conda: "env/sourmash.yml"
Expand All @@ -601,7 +602,8 @@ rule sourmash_prefetch_gather_wc:
echo "DB is {input.db}"
sourmash prefetch {input.sig} {input.db} \
--save-matches {output.matches} -k {params.ksize} \
--threshold-bp={params.threshold_bp} {params.moltype}
--threshold-bp={params.threshold_bp} {params.moltype} \
-o {output.csv}
"""

# run sourmash search x genbank and find anything matching.
Expand Down
2 changes: 1 addition & 1 deletion genome_grist/conf/env/sourmash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ channels:
dependencies:
- python=3.7
- screed
- sourmash>=4.1,<5
- sourmash>=4.1.1,<5
- pip
- pip:
- git+https://github.com/dib-lab/genome-grist.git#egg=genome-grist
2 changes: 1 addition & 1 deletion genome_grist/conf/env/sra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ channels:
- bioconda
- defaults
dependencies:
- sra-tools=2.11.0
- sra-tools=2.10.0
- seqtk=1.3
2 changes: 1 addition & 1 deletion genome_grist/gather_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main():
notify(f"Downsampling query from scaled={query_mh.scaled} to {scaled}")
query_mh = query_mh.downsample(scaled=int(scaled))

unknown_mh = copy.copy(query_mh)
unknown_mh = query_mh.to_mutable()

notify(f"Loaded {len(query_mh.hashes)} hashes from '{args.query_file}'")

Expand Down
2 changes: 1 addition & 1 deletion tests/test-data/HSMA33MX.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sample: HSMA33MX
sample: SRR5950647
outdir: outputs.test.HSMA33MX
sourmash_database_glob_pattern: tests/test-data/HSMA33MX-subset.x.genbank.matches.sig
metagenome_trim_memory: 1e9

0 comments on commit ec5d2e7

Please sign in to comment.