X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FDna.java;fp=src%2Fjalview%2Fanalysis%2FDna.java;h=5dcf212299933186ca544d7d23777cbbfeff9d9f;hb=3459a8a691cb22508d7067f240b7254e588e77d3;hp=8bf0c24e61fa6a125863353afcf9f70a91ea8b46;hpb=5b27f1062b2203c4c31702e205f4c78e1992063e;p=jalview.git diff --git a/src/jalview/analysis/Dna.java b/src/jalview/analysis/Dna.java index 8bf0c24..5dcf212 100644 --- a/src/jalview/analysis/Dna.java +++ b/src/jalview/analysis/Dna.java @@ -163,7 +163,8 @@ public class Dna * @param ac2 * @return */ - public static final int compareCodonPos(AlignedCodon ac1, AlignedCodon ac2) + public static final int compareCodonPos(AlignedCodon ac1, + AlignedCodon ac2) { return comparator.compare(ac1, ac2); // return jalview_2_8_2compare(ac1, ac2); @@ -270,7 +271,7 @@ public class Dna mappedrefs.add(ref); // add translated protein maps } } - dnarefs = mappedrefs;//.toArray(new DBRefEntry[mappedrefs.size()]); + dnarefs = mappedrefs;// .toArray(new DBRefEntry[mappedrefs.size()]); for (int d = 0, nd = dnarefs.size(); d < nd; d++) { Mapping mp = dnarefs.get(d).getMap(); @@ -469,7 +470,8 @@ public class Dna /* * Filled up a reading frame... */ - AlignedCodon alignedCodon = new AlignedCodon(cdp[0], cdp[1], cdp[2]); + AlignedCodon alignedCodon = new AlignedCodon(cdp[0], cdp[1], + cdp[2]); String aa = codeTable.translate(new String(codon)); rf = 0; final String gapString = String.valueOf(gapChar); @@ -798,29 +800,29 @@ public class Dna private static void transferCodedFeatures(SequenceI dna, SequenceI pep, MapList map) { - // BH 2019.01.25 nop? -// List dnarefs = DBRefUtils.selectRefs(dna.getDBRefs(), -// DBRefSource.DNACODINGDBS); -// if (dnarefs != null) -// { -// // intersect with pep -// for (int d = 0, nd = dnarefs.size(); d < nd; d++) -// { -// Mapping mp = dnarefs.get(d).getMap(); -// if (mp != null) -// { -// } -// } -// } + // BH 2019.01.25 nop? + // List dnarefs = DBRefUtils.selectRefs(dna.getDBRefs(), + // DBRefSource.DNACODINGDBS); + // if (dnarefs != null) + // { + // // intersect with pep + // for (int d = 0, nd = dnarefs.size(); d < nd; d++) + // { + // Mapping mp = dnarefs.get(d).getMap(); + // if (mp != null) + // { + // } + // } + // } for (SequenceFeature sf : dna.getFeatures().getAllFeatures()) { - if (FeatureProperties.isCodingFeature(null, sf.getType())) + if (FeatureProperties.isCodingFeature(null, sf.getType())) + { + // if (map.intersectsFrom(sf[f].begin, sf[f].end)) { - // if (map.intersectsFrom(sf[f].begin, sf[f].end)) - { - } } + } } }