A collection of simple scripts to handle genomic methylation data.
pysulfite is purely based on Python > 3.
sudo apt-get update
sudo apt-get install python3.6
mother_dir = "/home/yourname/fastas/"
Let's assume you know which gene the primers are targetting: simply provide the entire genomic region of interest as a fasta.
fasta_dict = {
"ACTB":f"{mother_dir}Homo_sapiens_ACTB_sequence.fa",
"SOX2": f"{mother_dir}Homo_sapiens_SOX2_sequence.fa",
}
Important note: You need to reverse complement the reverse primer. These sequences are fully made up and serve as an example only. Order: fwd, rev (but doesn't affect the result yet)
primer_dict = {
"ACTB":["TTTTCCCCTTTTTCCCC", "ATGCTTATTATATATTAT"],
"SOX2":["TTTTCCCCAAAACCCC", "ATGCTTATAAAATATTAT"],
}
In your terminal:
python3 pysulfite/find_where_qMSP_primer_binds.py
In your IDE: click run
pysulfite will tell you the original DNA sequence your primer binds, but only if your primer sequence is actually targeting in the fasta you provided.
Example output:
-------- ACTB
--- Forward primer
Found mPrimer in bisulfite-converted sequence at pos: 32278
mPrimer: GGGGTTTTATTGCGGAGTGC
origin.: GGGGCCCCACTGCGGAGTGC <- Please reverse compl if this is rev primer
uPrimer: GGGGTTTTATTGTGGAGTGT
- Anja Hess - Initial work
Please cite this github repo whenever used in your work.
This project is licensed under the GPL3 License - see the LICENSE file for details.