-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Update primer BED file from VarVAMP | ||
|
||
A small Python script to adjust the primer positions in a BED amplicon design file produced by the [VarVAMP pipeline](https://github.com/jonas-fuchs/varVAMP). | ||
|
||
![](https://img.shields.io/badge/python-3.12.1-brightgreen) | ||
![](https://img.shields.io/badge/uses-conda-yellow.svg) | ||
|
||
Email: [email protected], [email protected] | ||
|
||
## Objective | ||
|
||
[VarVAMP](https://github.com/jonas-fuchs/varVAMP) is a pipeline to design amplicon primer schemes based on multiple sequence alingments (MSA) of virus genomes. However, building an MSA can introduce gaps in the sequences and the resulting primer positions will be based on the alginment. | ||
|
||
If the primer scheme is now used for sequencing and bioinformatics analysis, it is important to remove the artificial primer sequences. To do that, most tools need a reference sequence and the primer BED file with the start and stop coordinates of the designed primers as input. | ||
|
||
Now, these primer positions need to be adjusted to match the reference sequenced used in the analysis. | ||
|
||
## Run the script | ||
|
||
The reference file in FASTA format and the primer TSV and BED files from [VarVAMP](https://github.com/jonas-fuchs/varVAMP) are taken as input and the updated BED file is obtained as output. Briefly summarized, the primer sequences from the TSV file are searched for in the reference, with max. mismatch of 2, and then the match positions are taken as new primer positions. | ||
|
||
```bash | ||
python3 correct_primer_positions.py [path/to/Reference/.fasta] [path/to/primer/.tsv] [path/to/primer/.bed] | ||
``` |