-
Notifications
You must be signed in to change notification settings - Fork 369
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
Immediately stop with input string error (NumberFormatException: For input string) #1783
Comments
@JuiTse The error message isn't very specific, but the length of your reference contig (2364278061) exceeds the maximum size that Picard can handle. Unfortunately, I'm not aware of any workaround for this. |
Hi, @cmnbroad |
@JuiTse Sorry, I don't have any suggestions for alternatives. |
What samtools command did you try? I think I would expect |
@JuiTse the BAM spec doesn't support positions > 2^31-1...so I think you are better off cutting up your reference into 2 than looking for a tool that supports such large positions. what is the organism that has this giant reference sequence? |
(reopening since I'm hoping to gain some feedback from the OP) |
Hi, @jmarshall I have consulted the similar issue in STAR github, and the author Alex Dobin thought it may be the exon with negative coordinate in GTF file that cause this serial problems (alexdobin/STAR#1492) |
Hi, @yfarjoun There seem to be some errors in GTF file (as I mentioned in the response to jmarshall), though I am not sure whether it is the cause of this picard issue. |
Hi,
I have used STAR to map the large genome (26GB), but fail when trying to do MarkDupliacte
Bug Report
I apply Picard version: 2.26.10, and the following is my code:
/home/liao/software/java/jre1.8.0_321/bin/java -jar picard.jar MarkDuplicates I=T733-02-T89Aligned_sortedByCoord_out.bam O=T733-02-T89Aligned.sortedByCoord.out_marked_dup.bam M=T733-02-T89Aligned.sortedByCoord.out_marked_dup_metrics.txt
INFO 2022-03-10 17:41:24 MarkDuplicates
********** NOTE: Picard's command line syntax is changing.
********** For more information, please see:
********** https://github.com/broadinstitute/picard/wiki/Command-Line-Syntax-Transition-For-Users-(Pre-Transition)
********** The command line looks like this in the new syntax:
********** MarkDuplicates -I T733-02-T89Aligned_sortedByCoord_out.bam -O T733-02-T89Aligned.sortedByCoord.out_marked_dup.bam -M T733-02-T89Aligned.sortedByCoord.out_marked_dup_metrics.txt
17:41:25.005 INFO NativeLibraryLoader - Loading libgkl_compression.so from jar:file:/data/personal2/lego/lego_Pinus/2_mapping/mapped_ind/unable%20to%20process/picard.jar!/com/intel/gkl/native/libgkl_compression.so
[Thu Mar 10 17:41:25 CST 2022] MarkDuplicates INPUT=[T733-02-T89Aligned_sortedByCoord_out.bam] OUTPUT=T733-02-T89Aligned.sortedByCoord.out_marked_dup.bam METRICS_FILE=T733-02-T89Aligned.sortedByCoord.out_marked_dup_metrics.txt MAX_SEQUENCES_FOR_DISK_READ_ENDS_MAP=50000 MAX_FILE_HANDLES_FOR_READ_ENDS_MAP=8000 SORTING_COLLECTION_SIZE_RATIO=0.25 TAG_DUPLICATE_SET_MEMBERS=false REMOVE_SEQUENCING_DUPLICATES=false TAGGING_POLICY=DontTag CLEAR_DT=true DUPLEX_UMI=false ADD_PG_TAG_TO_READS=true REMOVE_DUPLICATES=false ASSUME_SORTED=false DUPLICATE_SCORING_STRATEGY=SUM_OF_BASE_QUALITIES PROGRAM_RECORD_ID=MarkDuplicates PROGRAM_GROUP_NAME=MarkDuplicates READ_NAME_REGEX=<optimized capture of last three ':' separated fields as numeric values> OPTICAL_DUPLICATE_PIXEL_DISTANCE=100 MAX_OPTICAL_DUPLICATE_SET_SIZE=300000 VERBOSITY=INFO QUIET=false VALIDATION_STRINGENCY=STRICT COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false GA4GH_CLIENT_SECRETS=client_secrets.json USE_JDK_DEFLATER=false USE_JDK_INFLATER=false
[Thu Mar 10 17:41:25 CST 2022] Executing as liao@LiaoPC on Linux 5.4.0-96-generic amd64; Java HotSpot(TM) 64-Bit Server VM 1.8.0_321-b07; Deflater: Intel; Inflater: Intel; Provider GCS is not available; Picard version: 2.26.10
INFO 2022-03-10 17:41:25 MarkDuplicates Start of doWork freeMemory: 1750185592; totalMemory: 1771044864; maxMemory: 26277314560
INFO 2022-03-10 17:41:25 MarkDuplicates Reading input file and constructing read end information.
INFO 2022-03-10 17:41:25 MarkDuplicates Will retain up to 95207661 data points before spilling to disk.
[Thu Mar 10 17:41:25 CST 2022] picard.sam.markduplicates.MarkDuplicates done. Elapsed time: 0.01 minutes.
Runtime.totalMemory()=1771044864
To get help, see http://broadinstitute.github.io/picard/index.html#GettingHelp
Exception in thread "main" java.lang.NumberFormatException: For input string: "2364278061"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:583)
at java.lang.Integer.parseInt(Integer.java:615)
at htsjdk.samtools.SAMTextHeaderCodec.parseSQLine(SAMTextHeaderCodec.java:214)
at htsjdk.samtools.SAMTextHeaderCodec.decode(SAMTextHeaderCodec.java:113)
at htsjdk.samtools.BAMFileReader.readHeader(BAMFileReader.java:704)
at htsjdk.samtools.BAMFileReader.(BAMFileReader.java:298)
at htsjdk.samtools.BAMFileReader.(BAMFileReader.java:176)
at htsjdk.samtools.SamReaderFactory$SamReaderFactoryImpl.open(SamReaderFactory.java:406)
at picard.sam.markduplicates.util.AbstractMarkDuplicatesCommandLineProgram.openInputs(AbstractMarkDuplicatesCommandLineProgram.java:265)
at picard.sam.markduplicates.MarkDuplicates.buildSortedReadEndLists(MarkDuplicates.java:507)
at picard.sam.markduplicates.MarkDuplicates.doWork(MarkDuplicates.java:258)
at picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:308)
at picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:103)
at picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:113)
The string "2364278061", is the first chromosome length based on chrLength.txt file output from STAR.
It seems the program recognize it as non-numeric element, why it happened? and how to fix it?
Best,
Jui-Tse
The attached files are output from STAR (but the BAM file cannot be uploaded may due to its big size)
T733-02-T89.zip
The text was updated successfully, but these errors were encountered: