UGENE Forum
https://forum.ugene.net/forum/YaBB.pl
General Category >> Help and How-to >> How to generate consensus sequence for all refs
https://forum.ugene.net/forum/YaBB.pl?num=1412585219

Message started by Sami on Oct 6th, 2014 at 3:46pm

Title: How to generate consensus sequence for all refs
Post by Sami on Oct 6th, 2014 at 3:46pm
Hi,

I have been trying to use samtools to create consensus sequences. However, it seems that conseqs.fastq (see command below) is missing consensus sequences for most reference sequences.

--- samtools command ---
samtools mpileup -uf ref.fa sorted.bam | bcftools view -cg - | /usr/share/samtools/vcfutils.pl vcf2fq > conseqs.fastq
----

In IGV, I can create consensus sequence for all references (one by one). I would like to create the consensus sequences with a command line tool.

I asked this question at seqanswers forum and got an answer that creating the consensus sequences is possible with UGENE command line.

Can I have an example of an UGENE command that can be used to build consensus sequences from ref.fasta and sorted.bam files?

Thanks

Title: Re: How to generate consensus sequence for all refs
Post by Olga Golosova on Oct 7th, 2014 at 5:38pm
Hello,

In the current UGENE version 1.14.1 you can do the task only partially:

1) You can find out variants by a reference sequence and an assembly. It is the same as command:

Code:
samtools mpileup –uf <input_reference> <input_bam> | bcftools view –vg – | vcfutils.pl varFilter –D 100

For details, see: Call Variants with SAMtools

2) You can find out a consensus sequence from an assembly.
For details, see: Extract Consensus from Assembly

Unfortunately, it is not possible to get a new sequence from a reference + variations combination. We will add this feature into the next major UGENE release 1.15. Here is the link to the corresponding request in our issue-tracking system: UGENE-3588
Note that any workflow in UGENE can also be run from the command line.

Title: Re: How to generate consensus sequence for all refs
Post by QTheory1 on Dec 17th, 2015 at 4:23am
Is the input still the same to do this in version 1.15 because I input that code and nothing happened.

Title: Re: How to generate consensus sequence for all refs
Post by Olga Golosova on Dec 22nd, 2015 at 4:18pm

Quote:
Is the input still the same to do this in version 1.15 because I input that code and nothing happened.

What do you mean? The workflow in UGENE is still the same. Do you mean the original SAMtools command line tool?

Title: Re: How to generate consensus sequence for all refs
Post by Claire Ellison on Dec 20th, 2016 at 4:09am
Question: What Better Way To Get Consensus Sequence Of Mapping Against Reference Genome Using Samtools Mpileup?
------------------------------------------------------------
You can see the members area ADELE WEIGHT LOSS .

Title: Re: How to generate consensus sequence for all refs
Post by Priscilla Hamer on May 22nd, 2018 at 7:02am
I'm still using version 1.14.1 because I love this version so much that I never updated it. But I can't get a new sequence from a reference and variations combination in this version. What do you suggest? Should I upgrade to the latest version 1.29.0? Or is it possible to do so in any version above 1.14.1? If yes, where can I download it from?

Title: Re: How to generate consensus sequence for all refs
Post by Olga Golosova on May 22nd, 2018 at 9:08am

Priscilla Hamer wrote on May 22nd, 2018 at 7:02am:
I'm still using version 1.14.1 because I love this version so much that I never updated it. But I can't get a new sequence from a reference and variations combination in this version. What do you suggest? Should I upgrade to the latest version 1.29.0? Or is it possible to do so in any version above 1.14.1? If yes, where can I download it from?

Thank you for the feedback, Priscilla!

Unfortunately, this feature is not yet available in UGENE 1.29.0 as well. Instead, you might use, for example, FastaAlternateReferenceMaker from GATK (in the command line).

We'll take into account your request and add this feature in one of the nearest UGENE versions.

Title: Re: How to generate consensus sequence for all refs
Post by lexen luis on Jun 25th, 2018 at 2:55pm
I also use the version UGENE 1.14.1. And this version perfectly works  for me. Is there any updated version?

Title: Re: How to generate consensus sequence for all refs
Post by Olga Golosova on Jun 25th, 2018 at 3:00pm
Hi lexen luis!

Yes, current UGENE version is 1.30. See a brief description of new features here: http://ugene.net/changelist.html.

Title: Re: How to generate consensus sequence for all refs
Post by Brestrogen on Aug 21st, 2018 at 4:04pm

Priscilla Hamer wrote on May 22nd, 2018 at 7:02am:
I'm still using version 1.14.1 because I love this version so much that I never updated it. But I can't get a new sequence from a reference and variations combination in this version. What do you suggest? Should I upgrade to the latest version 1.29.0? Or is it possible to do so in any version above 1.14.1? If yes, where can I download it from?


Title: Re: How to generate consensus sequence for all refs
Post by Lyman on Aug 22nd, 2018 at 3:40am

lexen luis wrote on Jun 25th, 2018 at 2:55pm:
I also use the version UGENE 1.14.1. And this version perfectly works  for me. Is there any updated version?


The UGENe has many updates after this the current stable version is 1.31.0 (August, 2018).

Title: Re: How to generate consensus sequence for all refs
Post by Peyton12345 on Aug 28th, 2018 at 9:33pm
Hello there you can do it in the current UGENE version 1.14.1 you can do the task only partially

Title: Re: How to generate consensus sequence for all refs
Post by shane on Aug 29th, 2018 at 12:48am

Peyton12345 wrote on Aug 28th, 2018 at 9:33pm:
Hello there you can do it in the current UGENE version 1.14.1 you can do the task only partially


Thank for the help it would be really appreciable. :)

Title: Re: How to generate consensus sequence for all refs
Post by Peytonn james on Aug 29th, 2018 at 8:35pm
is the input same of the version when ever i input something nothing happens

Title: Re: How to generate consensus sequence for all refs
Post by Duncan David on Dec 7th, 2018 at 9:08am

Peytonn james wrote on Aug 29th, 2018 at 8:35pm:
is the input same of the version when ever i input something nothing happens


Are you using the latest version (1.31.1)? Because it is working fine for me.

Title: Re: How to generate consensus sequence for all refs
Post by johny jackson on Dec 20th, 2018 at 4:12pm

Duncan David wrote on Dec 7th, 2018 at 9:08am:

Peytonn james wrote on Aug 29th, 2018 at 8:35pm:
is the input same of the version when ever i input something nothing happens


Are you using the latest version (1.31.1)? Because it is working fine for me.

yes, I check this version. It's definitely work fine for me

Title: Re: How to generate consensus sequence for all refs
Post by Elmer on Jan 23rd, 2020 at 1:26am

Peytonn james wrote on Aug 29th, 2018 at 8:35pm:
is the input same of the version when ever i input something nothing happens



Yes, you are right. it is the same version.

UGENE Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.