BrooksLabUCSC / flair

Full-Length Alternative Isoform analysis of RNA
Other
201 stars 69 forks source link

How to concatenate bed files before flair collapse #332

Open chenxing-zhang opened 2 months ago

chenxing-zhang commented 2 months ago

I run flair-correct for each samples and then obtain corrected.bed for each samples. Before i run flair-collapse, i notice that "If there are multiple samples to be compared, the flair-corrected read bed files should be concatenated prior to running flair-collapse." How to concatenate bed files before flair collapse?

diekhans commented 2 months ago

BEDs are line-orient files, you can use the cat command.

chenxing-zhang @.***> writes:

I run flair-correct for each samples and then obtain corrected.bed for each samples. Before i run flair-collapse, i notice that "If there are multiple samples to be compared, the flair-corrected read bed files should be concatenated prior to running flair-collapse." How to concatenate bed files before flair collapse?

-- Reply to this email directly or view it on GitHub: https://github.com/BrooksLabUCSC/flair/issues/332 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

chenxing-zhang commented 2 months ago

Thanks. The following code is what I used, share it with others:

cat <list of corrected.bed>| sort -k1,1 -k2,2n -k3,3n > concatenated_corrected.bed