Package net.sf.samtools

Examples of net.sf.samtools.SAMException


            "CRAM index is not compatible with BAM files.");

      SAMFileReader reader = new SAMFileReader(params.inputFile);
      if (!reader.isBinary()) {
        reader.close();
        throw new SAMException(
            "Input file must be bam file, not sam file.");
      }

      if (!reader.getFileHeader().getSortOrder()
          .equals(SAMFileHeader.SortOrder.coordinate)) {
        reader.close();
        throw new SAMException(
            "Input bam file must be sorted by coordinates");
      }

      File indexFile = new File(params.inputFile.getAbsolutePath()
          + ".bai");
View Full Code Here


      buf.putInt(array.length);
      for (final float element : array)
        buf.putFloat(element);

    } else
      throw new SAMException("Unrecognized array value type: "
          + value.getClass());
  }
View Full Code Here

TOP

Related Classes of net.sf.samtools.SAMException

Copyright © 2018 www.massapicom. 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.