knowledgebase

recipes that save time

View the Project on GitHub hbc/knowledgebase

Using Reform to create custom genome

https://gencore.bio.nyu.edu/reform/

Usage guide

Conda env. and install

module load gcc/6.2.0 conda2/4.2.13
conda activate python_3.6.5 # you need an environment with python3 activated. (this one is custom for me)
pip3 install biopython
git clone https://github.com/gencorefacility/reform.git 
cd reform/

The command code and the files we need.

  --chrom=<chrom> \
  --position=<pos> \ 
  --in_fasta=<in_fasta> \
  --in_gff=<in_gff> \
  --ref_fasta=<ref_fasta> \
  --ref_gff=<ref_gff>

Example:

python3 reform.py 
 --chrom=X \
 --position=3 \
 --in_fasta=in.fa \
 --in_gff=in.gff3 \
 --ref_fasta=ref.fa \
 --ref_gff=ref.gff3

We will put the in.fa sequence in the X chromosome position 3.

Sequence is 10bp, so we expect a new transcript at X:4-13.

in.fa

input_sequence
TGGAGGATCG

ref.gff

in.gff

reformed.gff