-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests and installation in diagnostic
- Loading branch information
Showing
10 changed files
with
144 additions
and
40 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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Created on Sun Jan 17 16:12:47 2021 | ||
@author: usingh | ||
""" | ||
|
||
import os | ||
|
||
|
||
def build_tools(): | ||
cmd_ins_mamba="conda install -c conda-forge mamba" | ||
#cmd_update_py='mamba install python=3.8' | ||
cmd_bioconda='mamba install -c bioconda sra-tools=2.10.9 trim-galore=0.6.6 bbmap=38.87 hisat2=2.2.1 star=2.7.7a bowtie2=2.4.2 kallisto=0.46.2 salmon stringtie=2.1.4 orfipy=0.0.3 samtools=1.11' | ||
|
||
print(cmd_ins_mamba) | ||
os.system(cmd_ins_mamba) | ||
print(cmd_bioconda) | ||
os.system(cmd_bioconda) | ||
|
||
|
||
|
||
|
||
|
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Created on Sun Jan 17 15:24:42 2021 | ||
@author: usingh | ||
""" | ||
|
||
from pyrpipe import sra | ||
from pyrpipe import pyrpipe_utils as pu | ||
import os | ||
|
||
|
||
def runtest(): | ||
failed=False | ||
sraob=sra.SRA('ERR726985',directory='./pyrpipe_sratest') | ||
if not sraob.fastq_exists(): pu.print_boldred('Test failed'); failed=True | ||
pu.print_notification('Cleaning up...') | ||
sraob.delete_fastq() | ||
os.rmdir(sraob.directory) | ||
|
||
if failed: | ||
pu.print_boldred('Paired end test failed'); | ||
failed=False | ||
|
||
sraob=sra.SRA('SRR2134545',directory='./pyrpipe_sratest') | ||
if not sraob.fastq_exists(): pu.print_boldred('Test failed'); failed=True | ||
pu.print_notification('Cleaning up...') | ||
sraob.delete_fastq() | ||
os.rmdir(sraob.directory) | ||
|
||
if failed: | ||
pu.print_boldred('Single end test failed'); | ||
failed=False | ||
|
||
if not failed: | ||
pu.print_green('\n#####################All Tests Passed#####################\n') | ||
os.rmdir('./pyrpipe_sratest') |