Skip to content

Commit

Permalink
init a README
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelzer committed Jan 22, 2024
1 parent 942152c commit 3ede38f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
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]
```

0 comments on commit 3ede38f

Please sign in to comment.