* each line is formatted differently in GenBank and EMBL. See
* http://www.insdc.org/files/feature_table.html#7.1.
*/
-public abstract class FlatFile extends AlignFile
+public abstract class EMBLLikeFlatFile extends AlignFile
{
protected static final String LOCATION = "location";
* @param sourceId
* @throws IOException
*/
- public FlatFile(FileParse fp, String sourceId) throws IOException
+ public EMBLLikeFlatFile(FileParse fp, String sourceId) throws IOException
{
super(false, fp); // don't parse immediately
this.sourceDb = sourceId;
* @see ftp://ftp.ebi.ac.uk/pub/databases/ena/sequence/release/doc/usrman.txt
* @see ftp://ftp.ebi.ac.uk/pub/databases/embl/doc/FT_current.html
*/
-public class EmblFlatFile extends FlatFile
+public class EmblFlatFile extends EMBLLikeFlatFile
{
/**
* Constructor given a data source and the id of the source database
* @author gmcarstairs
* @see https://www.ncbi.nlm.nih.gov/Sitemap/samplerecord.html
*/
-public class GenBankFile extends FlatFile
+public class GenBankFile extends EMBLLikeFlatFile
{
private static final String DEFINITION = "DEFINITION";
File dataFile = new File("test/jalview/io/J03321.gb");
FileParse fp = new FileParse(dataFile.getAbsolutePath(),
DataSourceType.FILE);
- FlatFile parser = new GenBankFile(fp, "GenBankTest");
+ EMBLLikeFlatFile parser = new GenBankFile(fp, "GenBankTest");
List<SequenceI> seqs = parser.getSeqs();
assertEquals(seqs.size(), 1);