This is the wrong behavior, because those files have the rows FIRST_OF_PAIR and SECOND_OF_PAIR as well, which should have also been added to the JSON. This is because the picardTools parser uses self.library_read_type to determine whether reads are single end or paired end, but because baseParser uses _1_metric or _2_metric or _metric to determine whether samples are paired or single end, and bioflows picardTools output is always of the form _metric everything gets parsed as single end data. Also, self.library_read_type will be going away per #10. The fix should just parse all the rows without trying to decide if data is paired or single end, and add a column for read_id that has blank values.
If alignments for
picardTools
are from paired end data, then it will currently get parsed asThis is the wrong behavior, because those files have the rows
FIRST_OF_PAIR
andSECOND_OF_PAIR
as well, which should have also been added to the JSON. This is because the picardTools parser usesself.library_read_type
to determine whether reads are single end or paired end, but becausebaseParser
uses_1_metric
or_2_metric
or_metric
to determine whether samples are paired or single end, and bioflows picardTools output is always of the form_metric
everything gets parsed as single end data. Also,self.library_read_type
will be going away per #10. The fix should just parse all the rows without trying to decide if data is paired or single end, and add a column forread_id
that has blank values.