Skip to content

Commit

Permalink
try symlink with a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolefeuvre committed Nov 21, 2024
1 parent 072fc28 commit 54a432f
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions tools/mmseqs2/mmseqs2_taxonomy_assignment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ mmseqs createdb
'input'
'sequenceDB'
--dbtype '$createdb.dbtype'
--createdb-mode $createdb.createdb_mode
--shuffle $createdb.shuffle &&
ls -lah &&
ls -lah '$createtaxdb.database_type.mmseqs2_db_select.fields.path'* &&
ls -lah '$createtaxdb.database_type.mmseqs2_db_select.fields.path' &&
ln -s '$createtaxdb.database_type.mmseqs2_db_select.fields.path' taxdb &&
ls -lah &&
ls -lah taxdb &&
mmseqs createtaxdb
'taxdb'
'taxdb'/database
'tmp'
#if '$createtaxdb.tax_mapping_file'
--tax-mapping-file '$createtaxdb.tax_mapping_file'
Expand All @@ -34,16 +36,14 @@ mmseqs createtaxdb
--taxon-list '$filtertaxseqdb.filtertaxseqdb_bool.use_filter.taxon_list' &&
#end if
#end if
chmod -Rv 766 '$createtaxdb.database_type.mmseqs2_db_select.fields.path'_taxonomy &&
ls -lah &&
ls -lah '$createtaxdb.database_type.mmseqs2_db_select.fields.path'* &&
ls -lah taxdb &&
mmseqs taxonomy
#if str($filtertaxseqdb.filtertaxseqdb_bool.use_filter) == "yes"
'sequenceDB_filtered'
#else
'sequenceDB'
#end if
'$createtaxdb.database_type.mmseqs2_db_select.fields.path'
'taxdb'/database
'output_taxonomy'
'tmp'
#if str($taxonomy.alph_type.type) == "amino_acid"
Expand Down Expand Up @@ -195,7 +195,7 @@ mmseqs createtsv
#if str($kraken_report.keep_report) == "Yes"
&&
mmseqs taxonomyreport
'$createtaxdb.database_type.mmseqs2_db_select.fields.path'
'taxdb'/database
'output_taxonomy'
'taxo_result.txt'
--report-mode 0
Expand All @@ -204,7 +204,7 @@ mmseqs createtsv
#if str($krona_report.keep_report) == "Yes"
&&
mmseqs taxonomyreport
'$createtaxdb.database_type.mmseqs2_db_select.fields.path'
'taxdb'/database
'output_taxonomy'
'taxo_result.html'
--report-mode 1
Expand All @@ -215,12 +215,16 @@ mmseqs createtsv
]]></command>
<inputs>
<section name="createdb" title="Convert FASTA/Q file(s) to MMseqs sequence DB format" expanded="true">
<param name="input_fasta" type="data" format="fasta,fasta.gz" label="Input fasta file" help="" />
<param name="input_fasta" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input fasta file" help="" />
<param argument="--dbtype" type="select" label="Input type" help="" >
<option value="0" selected="true">Auto</option>
<option value="1">Amino acid</option>
<option value="2">Nucleotides</option>
</param>
<param argument="--createdb-mode" type="select" label="Create DB mode" help="" >
<option value="0" selected="true">Copy data</option>
<option value="1">Soft link data and write new index (works only with single line fasta/q)</option>
</param>
<param argument="--shuffle" type="boolean" checked="true" label="Shuffle input database" truevalue="1" falsevalue="0" optional="true" help="" />
</section>
<section name="createtaxdb" title="Add taxonomic labels to reference sequence DB" expanded="true">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 54a432f

Please sign in to comment.