Package htsjdk.tribble.readers

Examples of htsjdk.tribble.readers.LineIteratorImpl


    public MUTCodec(String path, Genome genome) {
        super(Mutation.class);
        this.path = path;
        this.genome = genome;
        try {
            LineIterator reader = new LineIteratorImpl(new AsciiLineReader(ParsingUtils.openInputStream(path)));
            readActualHeader(reader);
        } catch (IOException e) {
            log.error(e.getMessage(), e);
        }
    }
View Full Code Here


        if (headerLines != null) {
            String lines = StringUtils.join(headerLines, "\n");
            byte[] bytes = lines.getBytes();
            InputStream is = new ByteArrayInputStream(bytes);
            LineIterator reader = new LineIteratorImpl(new AsciiLineReader(is));
            try {
                codec.readHeader(reader);
            } catch (IOException e) {
                log.error(e.getMessage(), e);
            }
View Full Code Here

        List<D> featuresList = new ArrayList<D>();
        String line;
        D feat;

        LineIterator lrw = new LineIteratorImpl(new AsciiLineReader(is));
        lineFeatureDecoder.readActualHeader(lrw);

        while (lrw.hasNext()) {
            line = lrw.next();
            try {
                feat = decode(line);
                if (feat != null) {
                    featuresList.add(feat);
                }
View Full Code Here

    }


    public LineIterator getLineIterator() {
        try {
            return new LineIteratorImpl(LineReaderUtil.fromBufferedStream(new PositionalBufferedStream(new FileInputStream(hapMapFile))));
        } catch (FileNotFoundException e) {
            Assert.fail("Unable to open hapmap file : " + hapMapFile);
        }
        return null; // for intellij, it doesn't know that assert.fail is fatal
    }
View Full Code Here

TOP

Related Classes of htsjdk.tribble.readers.LineIteratorImpl

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.