Empty seqz.gz output from bam2seqz

181 views
Skip to first unread message

PRAKHAR SONIK

unread,
Mar 17, 2022, 6:32:40 AM3/17/22
to Sequenza User Group
HI all,
I am trying to get the seqz.gz output from bam2seqz feature of Sequenza however, my output file comes out to be empty totally. 

I checked the order of the file it seems to be same as well and no progress.

this is the code I use:

sequenza-utils bam2seqz \
  -n Normal_Aligned.out.markdup.recal.bam \
  -t Tumor_Aligned.out.markdup.recal.bam \
  -gc hg38.gc50Base.ordered.wig.gz \
  -F hg38_sorted.fa \
  -o out.seqz.gz \
  -T usr/bin/tabix

sming liu

unread,
Oct 23, 2023, 11:31:16 PM10/23/23
to Sequenza User Group
I have tried version 2.1.9999b0 and 3.0, both obtained empty results. I finally found an alternative solution: call mutation based on the paired BAMs, then use snp2seqz to obtain the sample seqz file.

favero.f...@gmail.com

unread,
Oct 24, 2023, 3:15:18 AM10/24/23
to sming liu, Sequenza User Group

Yes, that’s the “new” way I think sequenza files should be generated.

I’ve added new features in the R package and python package that are soon to be out.
I use strelka germline calls (generated using both tumor and normal bams) in ~2 minutes (vs days) in wgs samples


from iPhone

Il giorno 24 ott 2023, alle ore 05:31, sming liu <smli...@gmail.com> ha scritto:

I have tried version 2.1.9999b0 and 3.0, both obtained empty results. I finally found an alternative solution: call mutation based on the paired BAMs, then use snp2seqz to obtain the sample seqz file.
--
You received this message because you are subscribed to the Google Groups "Sequenza User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sequenza-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sequenza-user-group/b194cc96-2826-4159-bd1a-1bf723ee0f30n%40googlegroups.com.

sming liu

unread,
Oct 24, 2023, 4:19:19 AM10/24/23
to Sequenza User Group
Woh, Great! 
I'm now using somatic mutations generated by Mutect2, should I turn to strelka for better performance? I'm also curious about why bam2seqz generates an empty file but the vcf based on the same BAMs not.

Francesco Favero

unread,
Oct 24, 2023, 4:34:33 AM10/24/23
to sming liu, Sequenza User Group
In theory whatever caller it would do. It’s supposed to have an interface to define which tag to parse in a vcf (but practically I am not sure it covers 100% of the vcf flavours).  

We use strelka because it just works well and it’s stable, but to be honest I’m concerned that’s not really open source and it’s not being updated in years.
Illumina is moving toward Dragen and I doubt they’ll update strelka any time soon.
So something like gatk haplotype caller or freebayes should also work.

I unfortunately have limited time to spend on developing this, but the concept is to use multiple  vcf files to form a seqz: 
    process the germline vcf calls, keeping the het positions only (I’ve added a parameter in sequenza-utils), obtaining a ~30-50Mb seqz
    process the somatic vcf calls keeping the pass variants (indels and SNVs) from the variant caller obtaining a tiny seqz file.
        Use sequenza utils to merge the two files


Other efforts are going to add the subclonality calls, I have various scripts that do this since almost 10 years now, and I never managed to clean the process and bundle it in the package.

So basically, the new sequenza will be faster to run, generating cleaner calls (also a colleague of mine is working on a new segmentation algorithm that I want to bundle in, replacing the deprecated copy number package) and annotating mutations and copy number with its relative cancel cell fraction (clonal/subclonal) 

I hope to be able to deliver this soon :D



Francesco Favero

unread,
Oct 24, 2023, 4:44:24 AM10/24/23
to sming liu, Sequenza User Group
I have never experience the empty seqz file situation, I mean I did, but it was always for some human error :D

When the bam2seqz is run on the “full” bams, it relies on the order of the various sequences in the 2 bams, and in the GC wiggle file.
If for some reason the chromosome orders are so different that the 3 files go completely out of sync, it could generate an empty file.
For this I run bam2seqz in parallel for each chromosome, and merge the results later.

It could also be the “chr1” vs “1” situation. If one of the 3 file uses a different one, the sequenza utils is not checking for this, and it will give no results.

Mutect calls usually are made from a very standardised pipeline, eg using gatk best practices for alignment, variant calling, and using reference file from broad directly.



On 24 Oct 2023, at 10.19, sming liu <smli...@gmail.com> wrote:

sming liu

unread,
Oct 24, 2023, 6:06:45 AM10/24/23
to Sequenza User Group
Thanks for your kind reply.

The BAMs should be in the same order since they were generated using the standardized GTAK Somatic mutation pipeline. BAMs and GC wiggle file chromosomes are all in 'chr' format. I also tried to to run bam2seqz using --parallel and -C params, still obtained empty files for given chromosomes, unfortunately. Something must be turned wrong, but I don't know :(

sming liu

unread,
Nov 2, 2023, 2:16:51 AM11/2/23
to Sequenza User Group
Only using  mutect2 mutations to generate seqz file may not be a good choice, this will generate a small file and may lead to an error while load data using sequenza.extract:

Processing chr1: Error in data.frame(base.count = as.integer(n.base.mut), maj.base.freq = as.numeric(max.freqs[,  :
  arguments imply differing number of rows: 196, 188


This can be soloved by using samtools mpileup (produce pielup file from BAM) + sequenza-utils bam2seqz (produce seqz file based on pielup file) + sequenza-utils seqz_binning (binning seqz), the final binned seqz file can be loaded sucessfully and produce usable results.

Francesco Favero

unread,
Dec 12, 2023, 5:15:08 PM12/12/23
to Sequenza User Group
You can have a look at how we generate the seqz from variants here


It’s still not perfect (it could have issues on chrX in males) the key element is to generate germline calls using the tumor and the normal bams together (we use strelka)

Best

Francesco

Donkiss Zidane

unread,
Mar 30, 2024, 7:54:25 AM3/30/24
to Sequenza User Group
If you're interested in exploring the world of psychedelic mushrooms, you may be wondering if it's possible to buy shrooms online. The good news is that there are many online retailers that offer a wide range of mushroom products, from dried mushrooms to capsules, edibles, and more.
https://t.me/psychedelicmasters/57?single
https://t.me/psychedelicmasters/148?single
https://t.me/psychedelicmasters/128
https://t.me/psychedelicmasters/120
https://t.me/psychedelicmasters/118?single
https://t.me/psychedelicmasters/54
https://t.me/psychedelicmasters/46
https://t.me/psychedelicmasters/16?single
https://t.me/psychedelicmasters/11?single
https://t.me/psychedelicmasters/6
With a large selection of products to meet our clients' demands, Buy Psychedelics Online Shop is your go-to online drug store. We work hard to provide the best Legal Psychedelics For Sale Online and ship our goods internationally from everywhere.
With a large selection of products to meet our clients' demands, Buy Psychedelics Online Shop is your go-to online drug store. We work hard to provide the best Legal Psychedelics For Sale Online and ship our goods internationally from everywhere.

Buy Dmt Online
https://t.me/psychedelicmasters/610
Buy Top Quality Pink Runtz In USA
https://t.me/psychedelicmasters/609
Buy Packwood disposable catrideges Online
Order Big Chief Gummies Online
https://t.me/psychedelicmasters/603
Order Edibles in Europe
https://t.me/psychedelicmasters/598
Buy Gel Tabs Online
https://t.me/psychedelicmasters/596
Buy One Up Psilocybin mushrooms microdose Online
https://t.me/psychedelicmasters/596
https://t.me/psychedelicmasters/593
Buy Percs Online M30
https://t.me/psychedelicmasters/573
Buy XTC Pills Online
https://t.me/psychedelicmasters/571
https://t.me/psychedelicmasters/570
https://t.me/psychedelicmasters/567
Buy Ketamine Online
https://t.me/psychedelicmasters/566
Buy Trippy Flip Chocolate Bars In USA
https://t.me/psychedelicmasters/566
Buy Space Caps Chocolate Bars Online
https://t.me/psychedelicmasters/566
Buy LSD Sheet In USA
https://t.me/psychedelicmasters/560
Buy Trippy Money 500mg Online
https://t.me/psychedelicmasters/560
https://t.me/psychedelicmasters/556
Order LSD Sheet Online
https://t.me/psychedelicmasters/552
https://t.me/psychedelicmasters/548
https://t.me/psychedelicmasters/546
https://t.me/psychedelicmasters/540
Buy Escasy Pills Online
https://t.me/psychedelicmasters/539
https://t.me/psychedelicmasters/53
https://t.me/psychedelicmasters/520
https://t.me/psychedelicmasters/517
https://t.me/psychedelicmasters/501?single
https://t.me/psychedelicmasters/497
Buy Dried Golden Teacher Mushrooms Online
https://t.me/psychedelicmasters/490
https://t.me/psychedelicmasters/487
https://t.me/psychedelicmasters/477
Buy Hash Online
https://t.me/psychedelicmasters/473
https://t.me/psychedelicmasters/471
Buy Stiizy Pods Online
https://t.me/psychedelicmasters/458
https://t.me/psychedelicmasters/456
Buy FRYD Catrideges Online
https://t.me/psychedelicmasters/455
Buy Psilo-Vibin Infused Chocolate bars
https://t.me/psychedelicmasters/455
https://t.me/psychedelicmasters/420
https://t.me/psychedelicmasters/420
https://t.me/psychedelicmasters/420
https://t.me/psychedelicmasters/415
https://t.me/psychedelicmasters/412
https://t.me/psychedelicmasters/409
https://t.me/psychedelicmasters/407
https://t.me/psychedelicmasters/388
https://t.me/psychedelicmasters/388
https://t.me/psychedelicmasters/388
https://t.me/psychedelicmasters/386
https://t.me/psychedelicmasters/320?single
https://t.me/psychedelicmasters/275
https://t.me/psychedelicmasters/251
https://t.me/psychedelicmasters/217
https://t.me/psychedelicmasters/208?single
https://t.me/psychedelicmasters/206
https://t.me/psychedelicmasters/183?single
https://t.me/psychedelicmasters/128
https://t.me/psychedelicmasters/128
https://t.me/psychedelicmasters/633
https://t.me/psychedelicmasters/630
https://t.me/psychedelicmasters/628?single
https://t.me/psychedelicmasters/626
https://t.me/psychedelicmasters/625?single

WORLD CART DMT VAPE

unread,
Jan 15, 2026, 9:39:41 AM (4 days ago) Jan 15
to Sequenza User Group

Buy lsd tabs online,An LSD experience is similar in many ways to psilocybin mushrooms, but often individuals feel like they are better able to direct and control the experience. https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg ) LSD studies have shown success in treating depression, anxiety, smoking cessation, and many other psychological conditions.buy lsd ,buy lsd online ,buy 1p lsd usa ,buy lsd online uk ,can i buy lsd online ,where do people buy lsd ,buy lsd with credit card.
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
1p lsd buy online(buy lsd tabs online)
Lysergic acid diethylamide (more often referred to as simply acid or Buy LSD online) is one of those substances that have a vast range of physical, psychological, sensory, and other effects on human beings. Doubts aside, it influences an individual’s body the way that is nothing but powerful, which is why it has the potential to be used for therapeutic https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )/ Buy LSD online has already been successfully tested as a boon to those who suffer from alcohol abuse, chronic depression, and some other conditions, but these studies need to be further backed up. If this is what you set your sights on, Premium Psychedelics is a supplier of your choice!Apart from LSD, there are a number of analog substances available on our how  to buy lsd online ,1p lsd buy ,buying lsd in amsterdam ,buy lsd acid online ,buy lsd online uk ,buy lsd india ,lsd buying online ,lsd drug buy online
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
lsd tabs for sale|Lsd blotters for sale| cheap lsd for sale| lsd acid
LSD is produced in crystalline form and then mixed with excipients, or diluted as a liquid for production in indigestible forms. It is odorless, colorless and has a slightly bitter taste. LSD is sold in tablet form (usually small tablets known as Microdots), on Sugar Cubes, in thin squares of gelatin (commonly referred to as Window Panes), and most commonly, as blotter paper (sheets of absorbent paper soaked in or impregnated with LSD, covered with colorful designs or artwork, and perforated into one-quarter inch square, individual dosage units).
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
Effects of LSD
Effects of the drug while “tripping” include being extremely happy and laughing, losing the sense of time, having an enhanced sensitivity to general surroundings, being very energetic – having an overall sense of euphoria. Stronger effects may involve visual distortion, such as seeing static objects, like rugs or chairs, begin to appear rolling like waves or as if breathing. In addition you can Buy LSD Blotter in Portland Buy LSD Blotter in New York Order LSD Blotter in Detroit Order LSD Blotter Dublin Buy LSD Blotter Online Ohio,buy lsd with paypal,lsd tabs for sale ,lsd sheets for sale ,lsd blotter paper
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
LSD, a psychedelic drug known for its mind-blowing visual displays and life-altering insights, is typically consumed through the mouth. But, due to LSD being an incredibly tiny molecule, it can enter the human body through a variety of routes, not just orally.
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
The only difference between LSD gel tablets and LSD blotters (also known as "acid tablets") is that gel tablets contain the LSD in a gelatin base. In contrast, gel tab acid, blotters have the LSD in a particular type of absorbent paper (called blotting paper).
However, since LSD is a Schedule I drug in the US, know that trying any of these methods could land you in prison. There are also some minor health risks to consider. Basically, MERRY JANE isn’t responsible if you decide to trip acid after reading this. We’re just providing the information for educational — and entertainment — purposes. Now let’s dive into the psychedelic abyss of dosing techniques.
> BUY LSD GEL TABS - LSD GEL TABS FOR SALE ONLINE
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> buy lsd gel tabs online, acid gel tabs for sale, buy lsd online, acid tabs for sale online, best lsd gel tabs for sale online, acid tabs for sale. https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> Ever since LSD — otherwise known as “acid” — first entered popular culture, people have tried numerous ways of consuming it. Below, you’ll find pretty much all of them with historical examples showing that, yes, these methods did, in fact, work.
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> The sale of LSD (lysergic acid diethylamide) gel tablets has not changed since it was first introduced to the public. People are still using the LSD blotters that Timothy Leary used in the early days.
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> However, times are changing, and new technologies are being developed to accommodate more LSDs in a single container. Acid gel sheets are a novel method of preparing LSD with several advantages over traditional blotting paper. LSD Gel tablets can contain three times more stimulants than dry ones.
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> Acid Gel Tabs and LSD Blotters: What's the Difference?
> Gel tablets are the next generation of LSD administration. Lasting longer, Mescaline Powder, they can hold more LSDs per 1/4 square inch and cure about 50% faster than regular blotters.
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> Are LSD Gel tabs the same as Blotters?
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> Yes, the equipment is the same for the standard blotting papers and the new gel plates. Both types contain high LSD. The results' time frame may differ, but the overall experience is the same. Gel tabs are faster than blotters, and gel tabs drugs, so you may get a more substantial or spiked effect, although most users won't notice the difference. Also, gel tablets contain more LSD and have a more substantial side effect.
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> What is the Shelf Life of Gel Tabs for Sale?
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> One of the main advantages of gel tab LSD is its long life. If it is unknown how long it takes for acid gel tablets to wear off, it is thought to be between 3-6 years. All forms of LSD lose their potency over time, San Pedro Powder For Sale, especially if not properly stored. Knowing how to properly store LSD will help you keep its potency in the long run.
> https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> In general, gel tablets should be wrapped in aluminum foil and kept in the refrigerator. Refrigerating the container will extend its shelf life. Do not expose your LSD to high temperatures or direct sunlight for more than a few minutes.
> > BUY LSD GEL TABS - LSD GEL TABS FOR SALE ONLINE https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> > buy lsd gel tabs online, acid gel tabs for sale, buy lsd online, acid tabs for sale online, best lsd gel tabs for sale online, acid tabs for https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
> > The sale of LSD (lysergic acid diethylamide) gel tablets has not changed since it was first introduced to the public. People are still using the LSD blotters that Timothy Leary used in the early days.
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )

Reply all
Reply to author
Forward
0 new messages