Examples of GATKSAMRecord


Examples of org.broadinstitute.gatk.utils.sam.GATKSAMRecord

        }

        final int[] hapReadsNotInReference = new int[haplotypes.size()];

        for (int i = 0; i < readCount; i++) {
            final GATKSAMRecord r = as.readList().get(i);

            final int hapNumber = i % haplotypes.size();
            final int offset = i % (haplotypes.get(hapNumber).length() - readLength);
            Assert.assertEquals(r.getReadString(),haplotypes.get(hapNumber).getBaseString().substring(offset,offset+readLength));
            if (as.getReference().indexOf(r.getReadString()) == -1) {
                hapReadsNotInReference[hapNumber]++;
            }
        }

        Assert.assertEquals(hapReadsNotInReference[0],0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.