You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Function that takes the melted data frame from above and collapses down all UMIs associated with a single barcode (including duplicates) across all parallel runs of IronTHrone
#Create text file of commands for GNU Parallel to execute
213
-
touch ../Parallel_Command_List.txt
214
-
>../Parallel_Command_List.txt
215
-
216
-
#Loop through split R1 and R2 files, creating directories for each split's individual IronThrone run and adding a command to the parallel command list with the corresponding R1 and R2 filenames
217
-
total_files=0
218
-
foriin$(ls | grep '.*R[0-9][0-9][0-9][0-9]'| sed 's/\.fastq//g'| sed 's/.*R[0-9]//g'| sort | uniq);
219
-
do
220
-
R1=$(pwd)'/'$(ls | grep "R1${i}");
221
-
R2=$(pwd)'/'$(ls | grep "R2${i}");
222
-
output=${main_output_folder}'/'${i}
223
-
mkdir -p ${output};
224
-
225
-
echo"module load got/0.1; \
226
-
IronThrone-GoT \
227
-
-r ${run}\
228
-
-f1 ${R1}\
229
-
-f2 ${R2}\
230
-
-c ${config}\
231
-
-w ${whitelist}\
232
-
-u ${umilen}\
233
-
-b ${bclen}\
234
-
-o ${output}\
235
-
-m ${mmtch}\
236
-
-p ${postP}\
237
-
-d 1 \
238
-
-s ${sample}\
239
-
-l ${log}\
240
-
-k ${keepouts}\
241
-
-v ${verbose}">> ../Parallel_Command_List.txt
242
-
243
-
244
-
done
231
+
cd shuffled_split/
245
232
246
-
#Back to main level folder
247
-
cd ..
233
+
if((skip_iron_throne !=1))
234
+
then
235
+
echo Begin job parallelization
236
+
fi
248
237
249
238
250
-
#Run list of IronThrone commands on split fastqs using GNU Parallel
251
-
if((skip_iron_throne !=1))
252
-
then
253
-
parallel :::: Parallel_Command_List.txt
239
+
#Create text file of commands for GNU Parallel to execute
240
+
touch ../Parallel_Command_List.txt
241
+
>../Parallel_Command_List.txt
242
+
243
+
#Loop through split R1 and R2 files, creating directories for each split's individual IronThrone run and adding a command to the parallel command list with the corresponding R1 and R2 filenames
244
+
total_files=0
245
+
foriin$(ls | grep '.*R[0-9][0-9][0-9][0-9][0-9]'| sed 's/\.fastq//g'| sed 's/.*R[0-9]//g'| sort | uniq);
246
+
do
247
+
R1=$(pwd)'/'$(ls | grep "R1${i}");
248
+
R2=$(pwd)'/'$(ls | grep "R2${i}");
249
+
output=${main_output_folder}'/'${i}
250
+
mkdir -p ${output};
251
+
252
+
echo"module load got/0.1; \
253
+
IronThrone-GoT \
254
+
-r ${run}\
255
+
-f1 ${R1}\
256
+
-f2 ${R2}\
257
+
-c ${config}\
258
+
-w ${whitelist}\
259
+
-u ${umilen}\
260
+
-b ${bclen}\
261
+
-o ${output}\
262
+
-m ${mmtch}\
263
+
-p ${postP}\
264
+
-d 1 \
265
+
-s ${sample}\
266
+
-l ${log}\
267
+
-k ${keepouts}\
268
+
-v ${verbose}">> ../Parallel_Command_List.txt
269
+
270
+
271
+
done
272
+
273
+
#Back to main level folder
274
+
cd ..
275
+
276
+
#Run list of IronThrone commands on split fastqs using GNU Parallel
0 commit comments