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

Work out difference between query_length and infer_query_length #8

Closed
zyxue opened this issue Jul 13, 2018 · 1 comment
Closed

Work out difference between query_length and infer_query_length #8

zyxue opened this issue Jul 13, 2018 · 1 comment

Comments

@zyxue
Copy link
Owner

zyxue commented Jul 13, 2018

query_length
http://pysam.readthedocs.io/en/latest/api.html#pysam.AlignedSegment.query_length

infer_query_length
http://pysam.readthedocs.io/en/latest/api.html#pysam.AlignedSegment.infer_query_length

@zyxue
Copy link
Owner Author

zyxue commented Jul 13, 2018

Insertion (I38) and softclip (S) don't seem to make a difference

(Pdb) contig.query_name
'A1.R26257'
(Pdb) contig.cigarstring
'241M96N77M1I38M13S'
(Pdb) contig.query_length
370
(Pdb) contig.infer_query_length()
370
(Pdb) contig.infer_query_length(always=True)
370

hardclip will

(Pdb) contig.query_name
'A0.R100625'
(Pdb) contig.cigarstring
'138S23M35539N111M36422N13M1D12M3I849M2185H'
(Pdb) contig.query_length
1149
(Pdb) contig.infer_query_length()
1149
(Pdb) contig.infer_query_length(always=True)
3334
(Pdb) 1149 + 2185 # (hardclip)
3334

@zyxue zyxue closed this as completed Jul 17, 2018
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