Skip to content
Snippets Groups Projects
Commit dd77958e authored by tcarver's avatar tcarver
Browse files

small speed up for CDSFeature

parent 6944b0c0
Branches
Tags
No related merge requests found
......@@ -12,7 +12,7 @@ class CDSFeature
protected int lastBase;
protected int intronlength = 0;
protected String bases;
protected String id;
protected Feature feature;
protected Range lastRange = null;
public CDSFeature(boolean isFwd,
......@@ -35,7 +35,7 @@ class CDSFeature
this.firstBase = feature.getRawFirstBase();
this.lastBase = feature.getRawLastBase();
this.bases = feature.getBases();
this.id = feature.getIDString();
this.feature = feature;
}
public String toString() {
......
......@@ -71,7 +71,7 @@ public class VCFRecord
* @param line
* @return
*/
protected static VCFRecord parse(String line)
protected static VCFRecord parse(final String line)
{
final VCFRecord rec = new VCFRecord();
final String parts[] = TAB_PATTERN.split(line);
......@@ -520,7 +520,7 @@ public class VCFRecord
for(int k=0; k<ranges.size(); k++)
System.out.println(k+" "+ ((Range)ranges.get(k)).getStart() );
System.out.println(gfeat.id+" "+codonStart+" "+gfeat.intronlength+" basePosition="+basePosition+" segment="+range.getStart()+".."+range.getEnd()+" mod="+mod);
System.out.println(gfeat.feature.getIDString()+" "+codonStart+" "+gfeat.intronlength+" basePosition="+basePosition+" segment="+range.getStart()+".."+range.getEnd()+" mod="+mod);
throw new RuntimeException(e);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment