-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDiamondRay
executable file
·76 lines (55 loc) · 1.79 KB
/
DiamondRay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
kmerLength=$1
sampleDirectory=$2
processors=$3
outputDirectory=$4
mkdir $outputDirectory
cd $outputDirectory
source $DARK_FISH_TECHNOLOGY
DarkFishTechnology_initializeDirectory
DarkFishTechnology_prepareSample $sampleDirectory
pairs=$(DarkFishTechnology_getPairs)
mpiexec -version &> meta/mpiexec.version
Ray -version &> meta/ray.version
##
## base command
##
command="mpiexec -output-filename ComputeCore -n $processors Ray -o Assembly -k $kmerLength "
##
## add sequence reads
##
command="$command $pairs"
##
## ontology profiling
##
# EMBL_CDS sequences
geneSequences=$GENOMES_DIRECTORY/EMBL_CDS+GO/EMBL_CDS_Sequences
# annotation for EMBL_CDS objects
annotations=$GENOMES_DIRECTORY/EMBL_CDS+GO/000-Annotations.txt
# ontologies in obo format, as downloaded from geneontologies.org
ontologies=$GENOMES_DIRECTORY/EMBL_CDS+GO/000-Ontologies.txt
command="$command -search $geneSequences -gene-ontology $ontologies $annotations "
##
## taxonomy profiling
##
command="$command \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/ARDB \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/Bacteria-Genomes \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/Bacteria-ProteinCodingGenes \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/Bacteria-RNAGenes \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/HumanChromosomes \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/NCBI-Bacteria_DRAFT \
-search \
$GENOMES_DIRECTORY/RayKmerSearchStuff/last-build/Viruses-Genomes \
-with-taxonomy \
$GENOMES_DIRECTORY/taxonomy/last-build/Genome-to-Taxon.tsv \
$GENOMES_DIRECTORY/taxonomy/last-build/TreeOfLife-Edges.tsv \
$GENOMES_DIRECTORY/taxonomy/last-build/Taxon-Names.tsv"
#echo $command
DarkFishTechnology_runCommand 0 "$command"