public static ISAMFile GetReader(string filename, bool skipHeaders = false, string rangeInBedFile = null)
        {
            ISAMFile result = null;

            if (SAMUtils.IsBAMFile(filename) && !SystemUtils.IsLinux)
            {
                result = new BAMWindowReader(filename);
            }
            else
            {
                result = new SAMLinuxReader("samtools", filename, rangeInBedFile);
            }

            if (skipHeaders)
            {
                result.ReadHeaders();
            }

            return(result);
        }
示例#2
0
 public override bool NeedProcess(string filename)
 {
     return(SAMUtils.IsBAMFile(filename));
 }