X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Ffull_javadoc%2Fcompbio%2Fdata%2Fsequence%2FFastaReader.html;fp=website%2Ffull_javadoc%2Fcompbio%2Fdata%2Fsequence%2FFastaReader.html;h=f70765236212956dcaedd7a804aa87b5c4af8389;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=0000000000000000000000000000000000000000;hpb=0bbebf27d045b1345bc042bdf24ef2e6808df251;p=jabaws.git diff --git a/website/full_javadoc/compbio/data/sequence/FastaReader.html b/website/full_javadoc/compbio/data/sequence/FastaReader.html new file mode 100644 index 0000000..f707652 --- /dev/null +++ b/website/full_javadoc/compbio/data/sequence/FastaReader.html @@ -0,0 +1,415 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + compbio.data.sequence.FastaReader ++
public class FastaReader
+Reads files with FASTA formatted sequences. All the information in the FASTA + header is preserved including trailing white spaces. All the white spaces are + removed from the sequence. + + Examples of the correct input: + +
+ + >zedpshvyzg + GCQDKNNIAELNEIMGTTRSPSDWQHMKGASPRAEIGLTGKKDSWWRHCCSKEFNKTPPPIHPDMKRWGWMWNRENFEKFLIDNFLNPPCPRLMLTKGTWWRHEDLCHEIFWSTLRWLCLGNQSFSAMIWGHLCECHRMIWWESNEHMFWLKFRRALKKMNSNGPCMGPDNREWMITNRMGKEFCGPAFAGDCQSCWRKCHKTNKICFNEKKGTPTKIDHEQKDIMDILKDIDNHRNWKQCQLWLLTSKSTDQESTTMLTWSTWRDFFIIIKQPFDHKCRGALDANGDFQIAAELKWPAPMIILRQNQKTMHDKSCHHFFTNRCPLMHTTRANDKQCSWHTRKQFICQQDFTTWQHRPDTHRILPSWCMSTRRKNHIKNTPALAFSTCEMGDLPNGWAPGTIILQRQFTQAIKLPQETTGWPRCDPKFDHWNMSKWLRQLLGRDDEMIPPQCD + + >xovkactesa + CPLSKWWNRRAFLSHTANHWMILMTWEGPHDGESKMRIAMMKWSPCKPTMSHFRCGLDAWAEPIRQIACESTFRM + FCTTPRPIHKLTEMWGHMNGWTGAFCRQLECEWMMPPRHPHPCTSTFNNNKKRLIGQIPNEGKQLFINFQKPQHG + FSESDIWIWKDNPTAWHEGLTIAGIGDGQHCWNWMPMPWSGAPTSNALIEFWTWLGMIGTRCKTQGMWWDAMNHH + DQFELSANAHIAAHHMEKKMILKPDDRNLGDDTWMPPGKIWMRMFAKNTNACWPEGCRDDNEEDDCGTHNLHRMC + + >ntazzewyvv + CGCKIF D D NMKDNNRHG TDIKKHGFMH IRHPE KRDDC FDNHCIMPKHRRWGLWD + EASINM AQQWRSLPPSRIMKLNG HGCDCMHSHMEAD DTKQSGIKGTFWNG HDAQWLCRWG + EFITEA WWGRWGAITFFHAH ENKNEIQECSDQNLKE SRTTCEIID TCHLFTRHLDGW + RCEKCQANATHMTW ACTKSCAEQW FCAKELMMN + W KQMGWRCKIFRKLFRDNCWID FELPWWPICFCCKGLSTKSHSAHDGDQCRRW WPDCARDWLGPGIRGEF + FCTHICQQLQRNFWCGCFRWNIEKRMFEIFDDNMAAHWKKCMHFKFLIRIHRHGPITMKMTWCRSGCCFGKTRRLPDSSFISAFLDPKHHRDGSGMMMWSSEMRSCAIPDPQQAWNQGKWIGQIKDWNICFAWPIRENQQCWATPHEMPSGFHFILEKWDALAHPHMHIRQKKCWAWAFLSLMSSTHSDMATFQWAIPGHNIWSNWDNIICGWPRI + + > 12 d t y wi k jbke + KLSHHDCD + N + H + HSKCTEPHCGNSHQMLHRDP + CCDQCQSWEAENWCASMRKAILF + ++
+ +
+
+Constructor Summary | +|
---|---|
FastaReader(InputStream inputStream)
+
++ This class will not close the incoming stream! So the client should do + so. |
+|
FastaReader(String inputFile)
+
++ Header data can contain non-ASCII symbols and read in UTF8 |
+
+Method Summary | +|
---|---|
+ void |
+close()
+
++ Call this method to close the connection to the input file if you want to + free up the resources. |
+
+ boolean |
+hasNext()
+
++ |
+
+ FastaSequence |
+next()
+
++ Reads the next FastaSequence from the input |
+
+ void |
+remove()
+
++ Not implemented |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public FastaReader(String inputFile) + throws FileNotFoundException+
+
inputFile
- the file containing the list of FASTA formatted sequences to
+ read from
+FileNotFoundException
- if the input file is not found
+IllegalStateException
- if the close method was called on this instance+public FastaReader(InputStream inputStream) + throws FileNotFoundException+
+
inputStream
-
+FileNotFoundException
+Method Detail | +
---|
+public boolean hasNext()+
+
hasNext
in interface Iterator<FastaSequence>
IllegalStateException
- if the close method was called on this instance+public FastaSequence next()+
+
next
in interface Iterator<FastaSequence>
AssertionError
- if the header or the sequence is missing
+IllegalStateException
- if the close method was called on this instance+public void remove()+
+
remove
in interface Iterator<FastaSequence>
+public void close()+
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +