Package au.org.intersect.samifier.parser

Examples of au.org.intersect.samifier.parser.FastaParserImpl


        }
    }

    protected List<NucleotideSequence> extractSequenceParts(GeneInfo gene) throws IOException, FastaParserException {
        if (fastaParser == null) {
            fastaParser = new FastaParserImpl(chromosomeDirectory);
        }
        return fastaParser.extractSequenceParts(gene);
    }
View Full Code Here


    @Override
    public List<ProteinLocation> generateLocations()
            throws LocationGeneratorException {
        try {
            this.fastaParser = new FastaParserImpl(chromosomeDir);
            List<ProteinLocation> locations = doGenerateLocations();
            locations = removeDuplicates(locations);
            locations = mergeProteins(locations);
            Collections.sort(locations);
            Iterator<ProteinLocation> setIterator = locations.iterator();
View Full Code Here

        this.databaseName = databaseName;
        this.outputWriter = outputWriter;
        this.translationTableFile = translationTableFile;
        this.gffWriter = gffWriter;
        this.accessionWriter = accessionWriter;
        this.fastaParser = new FastaParserImpl(genomeFile);
    }
View Full Code Here

    public static void main(String[] args) throws Exception {
        try {
            File fastaFile = new File(args[0]);
            File translationTableFile = new File(args[1]);
            int direction = "+".equals(args[2]) ? 1 : -1;
            FastaParser parser = new FastaParserImpl(fastaFile);
            nucleotides = new GenomeNucleotides(parser.readCode(FilenameUtils.getBaseName(fastaFile.getName())));
            translationTable = CodonTranslationTable
                    .parseTableFile(translationTableFile);

            if (args.length == 4) {
                int codonPosition = Integer.parseInt(args[3]);
View Full Code Here

    @Test
    public void testCreateLocations()
    {
        try {
            File genomeFile = new File("test/resources/protein_generator/test_genome_short.faa");
            CodonsPerIntervalLocationGenerator locationGenerator = new CodonsPerIntervalLocationGenerator("20", new FastaParserImpl(genomeFile));

            List<ProteinLocation> locations = locationGenerator.generateLocations();
            for (ProteinLocation loc : locations)
            {
                System.out.println(loc);
View Full Code Here

TOP

Related Classes of au.org.intersect.samifier.parser.FastaParserImpl

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.