Package org.bioinfo.formats.core.feature.io

Examples of org.bioinfo.formats.core.feature.io.GffReader


        if (cfg.pathToRegions.endsWith("gff")) {
            // we have gff file -> convert it to BED
            String bedFile  =   workDir + "/file.bed";
            PrintWriter outWriter = new PrintWriter( new FileWriter(bedFile) );

            GffReader gffReader = new GffReader(cfg.pathToRegions);
            Gff region;

            int numLines = 0;

            while((region = gffReader.read())!=null){
                StringBuilder buf = new StringBuilder();
                buf.append(region.getSequenceName()).append("\t");
                buf.append(region.getStart()).append("\t");
                buf.append(region.getEnd()).append("\t");
                buf.append(region.getFeature()).append("\t");
View Full Code Here

TOP

Related Classes of org.bioinfo.formats.core.feature.io.GffReader

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.