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

ignoring substitution option #15

Open
yinshiyi opened this issue Mar 15, 2023 · 2 comments
Open

ignoring substitution option #15

yinshiyi opened this issue Mar 15, 2023 · 2 comments

Comments

@yinshiyi
Copy link

I have a specific need to ignore substitution only events.
If a read have indel + substitution, I will count it as edited.
If a read have indel, I will count it as editted.
But if it only have substitution in the quantification window, I will not count it.
Do you have any suggestion on how to implement this function in amplican?
Thank you

@yinshiyi
Copy link
Author

I am going to mess around with
events_filtered_shifted_normalized.csv

@yinshiyi
Copy link
Author

yinshiyi commented Mar 15, 2023

awk -F',' 'NR==1 || $8=="mismatch"' ${output}/alignments/events_filtered_shifted_normalized.csv \
> ${output}/alignments/events_filtered_shifted_normalized_filtered.csv

after I filtered out all the events that are not mismatch

alignments<-read.csv(paste0(results_folder,"alignments/events_filtered_shifted_normalized_filtered.csv"))
# rerun the summarize function
amplicanSummarize(alignments[alignments$consensus & alignments$overlaps, ],read.csv(config))%>%select(ID,Reads_Edited)

I got all zeros in reads_edited
I think that the defaults pipeline does not consider mismatch as edits

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