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

'cDNA_match' instead of contig names #1

Open
jeboyen opened this issue Mar 21, 2023 · 0 comments
Open

'cDNA_match' instead of contig names #1

jeboyen opened this issue Mar 21, 2023 · 0 comments

Comments

@jeboyen
Copy link

jeboyen commented Mar 21, 2023

When cds gets extracted, getfasta takes 'cDNA match' as names instead of the actual fasta names, because the gff3 file has 'cDNA match' in its 'name' column. To prevent this, we can add the following line.

Replace 'cDNA match' with contig names

awk -v OFS='\t' '$3=$1' "$file"2.gff3 > "$file"3.gff3

and use this file as input to getfasta

Extract cds using bedtools (results in each exon appearing on as a separate sequence)

bedtools getfasta -fi "$file" -bed "$file"3.gff3 -name -s > "$file"_int1.fa

--> Still one problem: if multiple genes occur on the same contig, they will be merged together, how to solve that?

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