TheJacksonLaboratory / splicing-pipelines-nf

Repository for the Anczukow-Lab splicing pipeline
14 stars 10 forks source link

Solves rMATS uneven input #182

Closed sk-sahu closed 4 years ago

sk-sahu commented 4 years ago

This PR solves the issue #170

Problem

When there are uneven number of samples in two groups in rmats_pairs.txt not able to segregate properly into b1.txt and b2.txt. Example -

rmats_pairs.txt

test1 sample1,sample2,sample3 sample4,sample5,sample6,sample7

b1.txt

sample1,sample2,sample3

b2.txt

sample4,sample5,sample6

Solution

This was happening because the program was assuming rmats_pairs.txt have equal number of samples in both groups. But now, we have changed it and it should be able to handle uneven number of samples in b1 and b2 groups. Example -

b1.txt

sample1,sample2,sample3

b2.txt

sample4,sample5,sample6,sample7

Test

After the changes done we have tested this in CloudOS with 7 samples earlier generated BAM file. It able to separate uneven number of samples to both the files.