# HG changeset patch # User ieguinoa # Date 1563888304 14400 # Node ID d22f69a2e80eaf43888289eccf23b29b4f1dce21 # Parent 3888ec1918d01694fcb16a8420564dcfa1106913 Uploaded diff -r 3888ec1918d0 -r d22f69a2e80e data_manager/salmon_index_builder.py --- a/data_manager/salmon_index_builder.py Thu Jan 03 10:51:18 2019 -0500 +++ b/data_manager/salmon_index_builder.py Tue Jul 23 09:25:04 2019 -0400 @@ -8,7 +8,7 @@ import sys from json import dumps, loads -DEFAULT_DATA_TABLE_NAME = "salmon_indexes" +DEFAULT_DATA_TABLE_NAME = "salmon_indexes_versioned" def get_id_name( params, dbkey, fasta_description=None): @@ -30,19 +30,17 @@ target_directory = params[ 'output_data' ][0]['extra_files_path'] if not os.path.exists( target_directory ): os.mkdir( target_directory ) - path=sequence_id args = [ 'salmon', 'index' ] if options.kmer_size != '': args.append('-k') args.append(options.kmer_size) - path=path + '_kmer_'+ options.kmer_size - args.extend( [ '-t' , options.fasta_filename, '-i', target_directory ] ) + args.extend( [ '-t', options.fasta_filename, '-i', target_directory ] ) proc = subprocess.Popen( args=args, shell=False) return_code = proc.wait() if return_code: print("Error building index.", file=sys.stderr) sys.exit( return_code ) - data_table_entry = dict( value=sequence_id, dbkey=options.fasta_dbkey, name=sequence_name, path=path ) + data_table_entry = dict( value=sequence_id, dbkey=options.fasta_dbkey, name=sequence_name, path=sequence_id, version=options.index_version ) _add_data_table_entry( data_manager_dict, data_table_name, data_table_entry ) diff -r 3888ec1918d0 -r d22f69a2e80e data_manager/salmon_index_builder.xml --- a/data_manager/salmon_index_builder.xml Thu Jan 03 10:51:18 2019 -0500 +++ b/data_manager/salmon_index_builder.xml Tue Jul 23 09:25:04 2019 -0400 @@ -1,8 +1,11 @@ index builder - salmon + salmon + + q5 + diff -r 3888ec1918d0 -r d22f69a2e80e data_manager_conf.xml --- a/data_manager_conf.xml Thu Jan 03 10:51:18 2019 -0500 +++ b/data_manager_conf.xml Tue Jul 23 09:25:04 2019 -0400 @@ -9,11 +9,12 @@ - ${dbkey}/salmon_index/${path} + ${dbkey}/salmon_index/${value} - ${GALAXY_DATA_MANAGER_DATA_PATH}/${dbkey}/salmon_index/${path} + ${GALAXY_DATA_MANAGER_DATA_PATH}/${dbkey}/salmon_index/${value}/${path} abspath + diff -r 3888ec1918d0 -r d22f69a2e80e tool-data/all_fasta.loc.sample --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool-data/all_fasta.loc.sample Tue Jul 23 09:25:04 2019 -0400 @@ -0,0 +1,18 @@ +#This file lists the locations and dbkeys of all the fasta files +#under the "genome" directory (a directory that contains a directory +#for each build). The script extract_fasta.py will generate the file +#all_fasta.loc. This file has the format (white space characters are +#TAB characters): +# +# +# +#So, all_fasta.loc could look something like this: +# +#apiMel3 apiMel3 Honeybee (Apis mellifera): apiMel3 /path/to/genome/apiMel3/apiMel3.fa +#hg19canon hg19 Human (Homo sapiens): hg19 Canonical /path/to/genome/hg19/hg19canon.fa +#hg19full hg19 Human (Homo sapiens): hg19 Full /path/to/genome/hg19/hg19full.fa +# +#Your all_fasta.loc file should contain an entry for each individual +#fasta file. So there will be multiple fasta files for each build, +#such as with hg19 above. +# diff -r 3888ec1918d0 -r d22f69a2e80e tool-data/salmon_indexes.loc.sample --- a/tool-data/salmon_indexes.loc.sample Thu Jan 03 10:51:18 2019 -0500 +++ b/tool-data/salmon_indexes.loc.sample Tue Jul 23 09:25:04 2019 -0400 @@ -1,28 +1,32 @@ -# salmon_indexes.loc.sample +# salmon_indexes_versioned.loc.sample # This is a *.loc.sample file distributed with Galaxy that enables tools # to use a directory of indexed data files. This one is for Salmon. # See the wiki: http://wiki.galaxyproject.org/Admin/NGS%20Local%20Setup # First create these data files and save them in your own data directory structure. -# Then, create a kallisto_indexes.loc file to use those indexes with tools. +# Then, create a salmon_indexes_versioned.loc.sample file to use those indexes with tools. # Copy this file, save it with the same name (minus the .sample), # follow the format examples, and store the result in this directory. # The file should include an one line entry for each index set. # The path points to the "basename" for the set, not a specific file. # It has four text columns seperated by TABS. # -# +# # +# The column can be retrieved from the header.json file in the index folder. e.g "IndexVersion": "q5" + + + # So, for example, if you had sacCer3 indexes stored in: # # /depot/data2/galaxy/sacCer3/salmon_indexes/ # # then the salmon_indexes.loc entry could look like this: # -#sacCer3 sacCer3 S. cerevisiae Apr. 2011 (SacCer_Apr2011/sacCer3) (sacCer3) /depot/data2/galaxy/sacCer3/salmon_indexes +#sacCer3 sacCer3 S. cerevisiae Apr. 2011 (SacCer_Apr2011/sacCer3) (sacCer3) /depot/data2/galaxy/sacCer3/salmon_indexes/version_3/ q6 # #More examples: # -#mm10 mm10 Mouse (mm10) /depot/data2/galaxy/salmon_indexes/mm10 -#dm3 dm3 D. melanogaster (dm3) /depot/data2/galaxy/salmon_indexes/dm3 +#mm10 mm10 Mouse (mm10) /depot/data2/galaxy/salmon_indexes/mm10/version_2 q4 +#dm3 dm3 D. melanogaster (dm3) /depot/data2/galaxy/salmon_indexes/dm3/version_1 q5 # # diff -r 3888ec1918d0 -r d22f69a2e80e tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Thu Jan 03 10:51:18 2019 -0500 +++ b/tool_data_table_conf.xml.sample Tue Jul 23 09:25:04 2019 -0400 @@ -1,7 +1,7 @@ - - value, dbkey, name, path - +
+ value, dbkey, name, path, version +