[ensembl-dev] Bio::EnsEMBL::Slice::expand

Benoît Ballester benoit at ebi.ac.uk
Wed Mar 28 12:35:11 BST 2012


Hi,

I have a question regarding the $slice->expand method.

Could you confirm that if the gene is on the -1 strand and I want to expand the upstream region of this gene I need to write my code like this :

$slice = $gene->slice->expand('', $ext5) if (strand < 0)
$slice = $gene->slice->expand($ext5, '') if (strand > 0)

Thanks, 

Ben





More information about the Dev mailing list