import java.util.ArrayList;
import java.util.List;
-import java.util.Vector;
import com.stevesoft.pat.Regex;
}
try
{
- // convert Type.PDB/MMCIF to FileFormat.PDB/MMCIF
- // todo get rid of Type?
- FileFormatI fileFormat = FileFormat.valueOf(pdbFileFormat.toString());
+ // todo get rid of Type and use FileFormatI instead?
+ // todo get rid of "ext" and just use "tmp"?
+ FileFormatI fileFormat = pdbFileFormat == Type.PDB ? FileFormat.PDB
+ : FileFormat.MMCif;
pdbAlignment = new FormatAdapter().readFile(file,
DataSourceType.FILE, fileFormat);
if (pdbAlignment != null)