-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for Release Version 1.2.2 (#43)
* Allow genome size to be given in scientific notation * Update genome size parameter info * Bump up version numbers * Don't require genome_size argument * Calculate dist using only read lengths > min_size * Use 2 * cut length as lower limit for dist * Add time commands to long-to-linked and minimap2 steps for tigmint-long * use 1000 as lower bound for dist * create fastq file for cut reads * simplify get_genome_size * create argument for dist read length percentile * v1.2.2 * update pipeline flow chart * change string formatting * change expected long-to-linked outputs to fastq * new expected output for long-to-linked * Use p50 for dist calculation * Update tests to use lower-bounded read length p50 as auto dist * Don't upgrade pip installations * Use python3.8 and add upgrade command back * Fix python paths * Update docstring Co-authored-by: Lauren Coombe <[email protected]>
- Loading branch information
1 parent
ab2a39b
commit 0873233
Showing
14 changed files
with
136 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ jobs: | |
versionSpec: "3.8" | ||
architecture: x64 | ||
- script: | | ||
sudo HOMEBREW_NO_AUTO_UPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install python | ||
sudo /home/linuxbrew/.linuxbrew/bin/pip3 install --upgrade setuptools \ | ||
sudo HOMEBREW_NO_AUTO_UPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install python@3.8 | ||
sudo /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/pip3 install --upgrade setuptools \ | ||
-U pip --no-cache-dir \ | ||
pylint . | ||
displayName: Install Python packages | ||
|
@@ -23,14 +23,14 @@ jobs: | |
cd ../ | ||
displayName: Run pylint | ||
- script: | | ||
export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH | ||
echo path: | ||
echo $PATH | ||
sudo /home/linuxbrew/.linuxbrew/bin/pip3 install pytest | ||
sudo /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/pip3 install pytest | ||
sudo HOMEBREW_NO_AUTOUPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew tap brewsci/bio | ||
sudo HOMEBREW_NO_AUTOUPDATE=1 /home/linuxbrew/.linuxbrew/bin/brew install bedtools bwa samtools gnu-time minimap2 | ||
cd tests/ | ||
export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH | ||
export PATH=/home/linuxbrew/.linuxbrew/opt/[email protected]/bin:$PATH | ||
echo $PATH | ||
cd tests | ||
pytest -vs tigmint_test.py | ||
env: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
displayName: Run pytests | ||
displayName: Run pytests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,7 @@ help: | |
@echo 'For more information see https://bcgsc.github.io/tigmint/' | ||
|
||
version: | ||
@echo "Tigmint 1.2.1" | ||
@echo "Tigmint 1.2.2" | ||
@echo "Written by Shaun Jackman @sjackman." | ||
|
||
all: tigmint arcs | ||
|
@@ -194,21 +194,21 @@ $(draft).%.sortbx.bam: %.fq.gz $(draft).fa.bwt | |
|
||
# Align cut long reads to the draft genome and output primary alignments sorted by BX tag. | ||
$(draft).%.cut$(cut).sortbx.bam: %.cut$(cut).fa.gz $(draft).fa | ||
minimap2 -y -t$t -ax map-$(longmap) --secondary=no $(draft).fa $< | samtools view -b -u -F4 | samtools sort -@$t -tBX -T$$(mktemp -u -t $@.XXXXXX) -o $@ | ||
$(gtime) minimap2 -y -t$t -ax map-$(longmap) --secondary=no $(draft).fa $< | samtools view -b -u -F4 | samtools sort -@$t -tBX -T$$(mktemp -u -t $@.XXXXXX) -o $@ | ||
|
||
# Segment long reads from gzipped fasta file, optionally calculating tigmint-long parameters. | ||
$(reads).cut$(cut).fa.gz: $(longreads) | ||
$(reads).cut$(cut).fq.gz: $(longreads) | ||
ifeq ($(span), auto) | ||
ifeq ($(dist), auto) | ||
$(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) -g$(G) -s -d -o $(reads).tigmint-long.params.tsv | $(gzip) > $@ | ||
$(gtime) $(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) -g$(G) -s -d -o $(reads).tigmint-long.params.tsv | $(gzip) > $@ | ||
else | ||
$(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) -g$(G) -s -o $(reads).tigmint-long.params.tsv | $(gzip) > $@ | ||
$(gtime) $(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) -g$(G) -s -o $(reads).tigmint-long.params.tsv | $(gzip) > $@ | ||
endif | ||
else | ||
ifeq ($(dist), auto) | ||
$(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) -d -o $(reads).tigmint-long.params.tsv | $(gzip) > $@ | ||
$(gtime) $(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) -d -o $(reads).tigmint-long.params.tsv | $(gzip) > $@ | ||
else | ||
$(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) | $(gzip) > $@ | ||
$(gtime) $(gzip) -dc $< | $(bin)/long-to-linked -l$(cut) -m$(minsize) | $(gzip) > $@ | ||
endif | ||
endif | ||
|
||
|
@@ -223,7 +223,7 @@ endif | |
$(gtime) $(bin)/tigmint-molecule -a$(as) -n$(nm) -q$(mapq) -d$(dist) -s$(minsize) $< | sort -k1,1 -k2,2n -k3,3n >$@ | ||
|
||
# Create molecule extents BED using cut long reads | ||
$(draft).$(reads).cut$(cut).as$(as).nm$(cut).molecule.size$(minsize).bed: $(reads).cut$(cut).fa.gz $(draft).fa | ||
$(draft).$(reads).cut$(cut).as$(as).nm$(cut).molecule.size$(minsize).bed: $(reads).cut$(cut).fq.gz $(draft).fa | ||
ifeq ($(dist), auto) | ||
$(gtime) minimap2 -y -t$t -as map-$(longmap) --secondary=no $(draft).fa $< | samtools view -b -u -F4 | samtools sort -@$t -tBX -T$$(mktemp -u -t [email protected]) | \ | ||
$(bin)/tigmint-molecule -a$(as) -n$(cut) -q$(mapq) -s$(minsize) -p $(reads).tigmint-long.params.tsv - | sort -k1,1 -k2,2n -k3,3n > $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.