Repository 'data_manager_salmon_index_builder'
hg clone https://toolshed.g2.bx.psu.edu/repos/ieguinoa/data_manager_salmon_index_builder

Changeset 4:ef2031036f47 (2018-11-26)
Previous changeset 3:3d12fd3b7cae (2018-10-19) Next changeset 5:3888ec1918d0 (2019-01-03)
Commit message:
Uploaded
modified:
data_manager/salmon_index_builder.py
b
diff -r 3d12fd3b7cae -r ef2031036f47 data_manager/salmon_index_builder.py
--- a/data_manager/salmon_index_builder.py Fri Oct 19 10:26:13 2018 -0400
+++ b/data_manager/salmon_index_builder.py Mon Nov 26 10:53:58 2018 -0500
[
@@ -34,8 +34,8 @@
     if options.kmer_size != '':
         args.append('-k')
         args.append(options.kmer_size)
-    args.extend( [ '-t' , options.fasta_filename, '-i', sequence_id ] )
-    proc = subprocess.Popen( args=args, shell=False, cwd=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)
@@ -71,7 +71,6 @@
         raise Exception( '"%s" is not a valid dbkey. You must specify a valid dbkey.' % ( options.fasta_dbkey ) )
 
     sequence_id, sequence_name = get_id_name( params, dbkey=options.fasta_dbkey, fasta_description=options.fasta_description )
-
     # build the index
     build_salmon_index( data_manager_dict, options, params, sequence_id, sequence_name )