You probably want to call something like:
System.out.println("Sequnence: \t" + feat.getSequence().getName());
Matthew
Alberto Ambesi wrote:
I can successfully extract Location and Strand features from a transcript, but I can't find a way to get the chromosome ID where the gene is located. I am using the following code:
SequenceDB chromosomes =ens.getChromosomes(); FeatureHolder transcripts = chromosomes.filter( new FeatureFilter.ByAnnotation(Ensembl.TRANSCRIPT_GENEID, ensID) ); iter= transcripts.features(); while (iter.hasNext()) { StrandedFeature feat = (StrandedFeature)iter.next();
System.out.println("Strand: \t" + feat.getStrand().toString());
System.out.println("Location: \t" + feat.getLocation()); }
thanks a lot. dr. Alberto Ambesi
------------------------------------------------------------------------
_______________________________________________ Biojava-l mailing list - [EMAIL PROTECTED] http://biojava.org/mailman/listinfo/biojava-l
-- BioJava Consulting LTD - Support and training for BioJava http://www.biojava.co.uk
_______________________________________________ Biojava-l mailing list - [EMAIL PROTECTED] http://biojava.org/mailman/listinfo/biojava-l