Hello everyone, I have a folder that contains among other files, a list of sam files that was split previously by someone else. I want to use the same file but in the un-split form so I am looking for a way to:
- separate them out of the folder using grep because they are many (what grep command please?)
- Merge them into one Sam file.
Thanks
the thing is I have hundreds of sam in the folder. it will take forever to do this one after the other to generate all bams before I merge them
Then use
parallel
as suggested aboveIf you want use sam directly use MergeSamFiles from Picard tools:
https://software.broadinstitute.org/gatk/documentation/tooldocs/4.0.0.0/picard_sam_MergeSamFiles.php
That's what screen or tmux are for. Coupled with
parallel
that should do the trick.Im not an expert in this field, so some of the terms are strange to me. However, I will try to install picard and try the command. Thanks