j-andrews7/VAMPIRE

get_motifs length all not individual TF

Closed this issue · 2 comments

get_motifs max_length is used to track length off all TF Loaded from motif file, thus wing length for variant is too large for most TF and they are ignored. get_motifs should also set/return valid flag by checking that all ACGT have same length matrix.

Quite possible. Testing on the full VCF file will likely tell if so.

On Oct 15, 2016 5:45 PM, "Crumbs350" notifications@github.com wrote:

related to issue #22 #22?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#35 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJwINAVfPgSKLj6CDhTDdorRlIgTr6fXks5q0Vd5gaJpZM4KX1aQ
.

Fixed awhile ago during implementation of motif.py::MotifElement class calls to sequence.py::SequenceElement class object. Specifically MotifElement.checkValid() determines if motif TF matrix is consistent during addition to the set. MotifArray.motif_scores() makes sure the sequence is reduced to roughly 2x individual motif length based on use of sequence.py::crop_from_left and sequence.py::crop_from_right for trim_amount = wing_l - motif_element.positions + 1