Skip to content

Commit 3cc7e87

Browse files
committed
remove FastaReader main
1 parent f9a0ea4 commit 3cc7e87

1 file changed

Lines changed: 1 addition & 43 deletions

File tree

biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/FastaReader.java

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -229,47 +229,5 @@ public void close() throws IOException {
229229
}
230230
this.line=this.header = null;
231231
}
232-
233-
public static void main(String[] args) {
234-
try {
235-
String inputFile = "/PF00104_small.fasta";
236-
InputStream is = FastaReader.class.getResourceAsStream(inputFile);
237-
238-
239-
if ( is == null)
240-
System.err.println("Could not get input file " + inputFile);
241-
FastaReader<ProteinSequence, AminoAcidCompound> fastaReader = new FastaReader<ProteinSequence, AminoAcidCompound>(is, new GenericFastaHeaderParser<ProteinSequence,AminoAcidCompound>(), new ProteinSequenceCreator(AminoAcidCompoundSet.getAminoAcidCompoundSet()));
242-
LinkedHashMap<String,ProteinSequence> proteinSequences = fastaReader.process();
243-
is.close();
244-
245-
246-
//logger.info("Protein Sequences: {}", proteinSequences);
247-
248-
File file = new File(inputFile);
249-
FastaReader<ProteinSequence,AminoAcidCompound> fastaProxyReader =
250-
new FastaReader<ProteinSequence,AminoAcidCompound>(
251-
file,
252-
new GenericFastaHeaderParser<ProteinSequence,AminoAcidCompound>(),
253-
new FileProxyProteinSequenceCreator(
254-
file,
255-
AminoAcidCompoundSet.getAminoAcidCompoundSet(),
256-
new FastaSequenceParser()
257-
)
258-
);
259-
LinkedHashMap<String,ProteinSequence> proteinProxySequences = fastaProxyReader.process();
260-
261-
for(String key : proteinProxySequences.keySet()){
262-
ProteinSequence proteinSequence = proteinProxySequences.get(key);
263-
logger.info("Protein Proxy Sequence Key: {}", key);
264-
// if(key.equals("Q98SJ1_CHICK/15-61")){
265-
// int dummy = 1;
266-
// }
267-
logger.info("Protein Sequence: {}", proteinSequence.toString());
268-
269-
}
270-
271-
} catch (Exception e) {
272-
logger.warn("Exception: ", e);
273-
}
274-
}
232+
275233
}

0 commit comments

Comments
 (0)