[Biojava-l] How to extract chromosome ID from a Transcript?
Matthew Pocock
matthew_pocock at yahoo.co.uk
Sun Jul 6 12:26:53 EDT 2003
Hi Alberto,
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 - Biojava-l at biojava.org
> http://biojava.org/mailman/listinfo/biojava-l
--
BioJava Consulting LTD - Support and training for BioJava
http://www.biojava.co.uk
More information about the Biojava-l
mailing list