File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ function main(){
227
227
key=" $1 "
228
228
case $key in
229
229
-h | --help) usage && exit 0;;
230
- -b | --skip-index) args[" skip_index" ]=true; shift ;;
230
+ -s | --skip-index) args[" skip_index" ]=true; shift ;;
231
231
-* | --* ) err " Error: Failed to parse unsupported argument: '${key} '." ; usage && exit 1;;
232
232
* ) err " Error: Failed to parse unrecognized argument: '${key} '. Do any of your inputs have spaces?" ; usage && exit 1;;
233
233
esac
@@ -249,7 +249,12 @@ function main(){
249
249
read_length_index=$( _get_read_length " Reports/multiqc_matrix.tsv" \
250
250
| awk -v wd=" $PWD " \
251
251
' {print wd"/rMATS/STAR/2.7.6a/genes-"$1"/"}' )
252
- while read g1 g2; do
252
+
253
+ # Works even if the last line does
254
+ # not contain a new line character,
255
+ # technically tsv/text files should
256
+ # but this is more robust.
257
+ while read g1 g2 || { [ -n " $g1 " ] && [ -n " $g2 " ]; }; do
253
258
# Run rMATS for each constrast
254
259
# $1 = Group 1
255
260
# $2 = Group 2
You can’t perform that action at this time.
0 commit comments