Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will concatenating sequences returned from chado_get_feature_sequences be in the right order? #82

Open
bradfordcondon opened this issue Mar 28, 2019 · 1 comment

Comments

@bradfordcondon
Copy link
Contributor

we cant sort by rank.

This is the order the sequences are returned to me:

3624472..3624691-

3624748..3624979-

3634939..3635074-

but since its negative strand im not positive if this is the right order or not!

In fact, none of the keys we have are helpful:

types (Array, 0 elements)
upstream (String, 1 characters ) 0
downstream (String, 1 characters ) 0
defline (String, 232 characters ) AGLA000141-RA-CDS ID=AGLA000141-RA-CDS|Name=AGL...
residues (String, 0 characters )
featureloc_id (String, 7 characters ) 7040898
length (Integer) 0
@bradfordcondon
Copy link
Contributor Author

bradfordcondon commented Mar 29, 2019

lets consider the feature in residues vs the built feature for AGLA000141-RA-CDS

$options = [];


$residues_seq = chado_get_feature_sequences(['feature_id' => 7008813], $options);

dpm($residues_seq[0]['residues']);


$options['derive_from_parent'] = 1;


$derived_array = chado_get_feature_sequences(['feature_id' => 7008813], $options);

$seq_build = '';

foreach ($derived_array as $sequence) {
  $seq_string = $sequence['residues'];
dpm($seq_string);
  if ($seq_string) {
    $seq_build .= $seq_build . $seq_string;
  }

}

$statement = ($seq_build === $residues_seq[0]['residues']);

dpm($statement);

Screen Shot 2019-03-29 at 10 00 32 AM

Pretty clear the sequences are built "backwards".

Here is hte protein sequence from i5k, which matches the i5k CDS

>AGLA000141-PA
LPRGIGRLVVKMLCFGEPLQYDPQFDGPLKRRSCTDVICLLIFAVFMTGWVGIGIYAFMNGDPSTLLVPK
DTAGSRCGVDSHVKDRPYLFFFDLTRCLDPRVPFTGCNTTQVCVTQCPSTNYFKTGATYEGDTGFCNTYT
NSSTSDCPDWYLISTVFLNRCLYNVGDRKKLKRPGMAEVMGDEISVMKSLLNPYHMWISLAVQNALTYLT
ENENVHKIGQNVVEDIIRSWWKILLGVVLALLACIIYIIMLRWMAAPIVWLSIIGVLACLSCGEYGLYFT
TIKYIEFRDKYNAEVYEEVKSSYKTKRDLFLTGLIIISIVLAIILLMLIFLRKRIILAIALVKEGSKAVS
SVTASLFFPILPWVLQLGIIAYAIAVALYLKTTGDPVYRTRHIESTCNIGFEDNVECDPDEFRAAIENNT
LGGCANAICKFIRIDNSDFYPYLQAINVFGFFWLVFFISALGQMVLAAVFAQWYWTFHKSALPFFAVTVA
FCRTVRVLLEYIDYKLKKYDNDLVKAILCCCKCFFWCLENFLKFINKNAYIMCAVHGKNFCASAKDAFLL
LMRNIVRVFVLDKVTDFLFFLSKLLVTCGVGAVSYVIFATDLTSIDNSSLNYGIVPVIIIMVCTYLISSV
FFSVYSMAVDTLFLCFLEDCERNDGSAEKPYFMSKNLMKIFGKKNNLS*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant