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

how is the insertion index calculated? #132

Open
mpapange opened this issue Jun 27, 2023 · 6 comments
Open

how is the insertion index calculated? #132

mpapange opened this issue Jun 27, 2023 · 6 comments

Comments

@mpapange
Copy link

No description provided.

@lbarquist
Copy link
Contributor

It's the number of detected insertion sites divided by the gene length.

@mpapange
Copy link
Author

The insertion indexes in my tradis_gene_insert table do not match the insert count/ gene length. Example:

ins_index gene_length ins_count ins count/ gene length
0.057711443 1116 58 0.051971326

@lbarquist
Copy link
Contributor

Are you using 5' or 3' end gene trimming? It's only calculated over the untrimmed region. The calculation is on lines 123 - 140 of tradis_gene_insert_sites if you want to look at how it's being done.

@mpapange
Copy link
Author

Do you mean on the fastq file? I use trim galore to remove reads contaminated with Illumina adapters on the fastq files. This should only work on the 3 end.

@lbarquist
Copy link
Contributor

No, I mean the -trim3 or -trim5 arguments to tradis_gene_insert_sites. I suspect you have -trim3 set to 0.1 as in the tutorial. Assuming no insertion sites fall into the trimmed region, this will lead to the insertion index being calculated as:

58 / (1116 - 111) =~ 0.0577

which is what you have.

@mpapange
Copy link
Author

Apologies! Yes, this is what I did. Thank you this clears things up.

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

2 participants