Closed bioinformatist closed 6 years ago
Well, It's not a bug of rush
.
You should not simultaneously append data to one file.
Your command:
head -n7 times | cut -f1 | rush "grep \"{}\" secondary_mapped.sam >> most.sam" -k
The right command:
head -n7 times | cut -f1 | rush "grep \"{}\" secondary_mapped.sam" -k > most.sam
wtf
When use rush to deal with SAM file, I find: The
-k
parameter not works, also original-complete line may broken. To reproduce, you may run command below with attached files example.tar.gz:When parameter
See the order? As same as file
But the order comes wrong
--dry-run
is given, I get commands listed as below :times
used in rush:when I remove
Also, lines may be broken by rush:
![image](https://user-images.githubusercontent.com/17194719/31861941-3ffe6a94-b768-11e7-99fd-f598b64fbc6d.png)
--dry-run
:But when I use only one thread (
-j 1
) at a time, everything is OK.