import jalview.schemes.FeatureColour;
import jalview.schemes.FeatureSettingsAdapter;
import jalview.util.MapList;
+import jalview.util.Platform;
import java.awt.Color;
import java.io.UnsupportedEncodingException;
* convert to a non-duplicated list of gene identifiers
*/
List<String> geneIds = getGeneIds(query);
-
AlignmentI al = null;
for (String geneId : geneIds)
{
{
continue;
}
-
+
if (geneAlignment.getHeight() == 1)
{
// ensure id has 'correct' case for the Ensembl identifier
geneId = geneAlignment.getSequenceAt(0).getName();
-
findGeneLoci(geneAlignment.getSequenceAt(0), geneId);
-
getTranscripts(geneAlignment, geneId);
}
if (al == null)
return true;
} catch (NumberFormatException e)
{
- System.err.println("Bad integers in description " + description);
+ jalview.bin.Console.errPrintln("Bad integers in description " + description);
}
}
return false;
SequenceOntologyI.NMD_TRANSCRIPT_VARIANT,
SequenceOntologyI.TRANSCRIPT, SequenceOntologyI.EXON,
SequenceOntologyI.CDS };
- List<SequenceFeature> sfs = gene.getFeatures().getFeaturesByOntology(
- soTerms);
+ List<SequenceFeature> sfs = gene.getFeatures()
+ .getFeaturesByOntology(soTerms);
for (SequenceFeature sf : sfs)
{
gene.deleteFeature(sf);
transcriptLoci.add(geneMapping.locateInTo(exon[0], exon[1]));
}
- List<int[]> transcriptRange = Arrays.asList(new int[] {
- transcript.getStart(), transcript.getEnd() });
+ List<int[]> transcriptRange = Arrays
+ .asList(new int[]
+ { transcript.getStart(), transcript.getEnd() });
MapList mapList = new MapList(transcriptRange, transcriptLoci, 1, 1);
transcript.setGeneLoci(loci.getSpeciesId(), loci.getAssemblyId(),
@Override
public String getTestQuery()
{
- return "ENSG00000157764"; // BRAF, 5 transcripts, reverse strand
+ return Platform.isJS() ? "ENSG00000123569" : "ENSG00000157764";
+ // ENSG00000123569 // H2BFWT histone, 2 transcripts, reverse strand
+ // ENSG00000157764 // BRAF, 5 transcripts, reverse strand
// ENSG00000090266 // NDUFB2, 15 transcripts, forward strand
// ENSG00000101812 // H2BFM histone, 3 transcripts, forward strand
- // ENSG00000123569 // H2BFWT histone, 2 transcripts, reverse strand
}
/**