EnglishFrenchSpanish

OnWorks favicon

scramble - Online in the Cloud

Run scramble in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command scramble that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


scramble - Converts between the SAM, BAM and CRAM file formats.

SYNOPSIS


scramble [options] [input_file [output_file]]

DESCRIPTION


scramble converts between various next-gen sequencing alignment file formats, including
SAM, BAM and CRAM. It can either act as a pipe reading stdin and writing to stdout, or on
named files.

When operating as a pipe the input type defaults to SAM or BAM, requiring the -I cram
option to indicate input is in CRAM format is appropriate. The output defaults to BAM, but
can be adjusted by using the -O format option. When given filenames the file type is
automatically chosen based on the filename suffix.

OPTIONS


-I format
Selects the input format, where format is one of sam, bam or cram. Use this when
reading via a pipe to avoid input bytes being consumed when attempting to detect if
the input is in SAM or BAM format.

-O format
Selects the output format, where format is one of sam, bam or cram.

-1 to -9
Sets the compression level from 1 (low compression, fast) to 9 (high compression,
slow) when writing in BAM or CRAM format. This is only used during writing.

-0 or -u
Writes uncompressed data. In BAM this still uses BGZF containers, but with no
internal compression. In CRAM it stores blocks in RAW format instead. The option
has no effect on SAM output.

-j CRAM encoding only. Add bzip2 to the list of compression codes potentially used
during CRAM creation.

-Z CRAM encoding only. Add lzma to the list of compression codes potentially used
during CRAM creation. Given the slow compression speed of lzma, this may only be
used where it gives a significant advantage over zlib or bzip2, but with higher
compression levels (-7) this weighting is ignored as LZMA decompression speed is
acceptable, albeit still slower than zlib.

-m CRAM decoding only. Generate MD:Z: and NM:I: auxiliary fields based on the
reference-based compression.

-M CRAM encoding only. Forcibly pack sequences from multiple references into the same
slice. Normally CRAM will start a new slice when changing from one reference to
another, but will still automatically switch to multi-reference slices if the
number of sequences per slice becomes too small.

-R range
Currently for CRAM input only, but SAM/BAM support is pending. This indicates a
reference sequence name and optionally a start and end location within that
reference, using the syntax ref_name or ref_name:start-end. For efficient operation
the CRAM file needs a .crai format index (built using the cram_index program).

-r ref.fa
CRAM encoding only. Use this to specify the reference fasta file. Note that if
the input SAM or BAM file a file: or local file system based URI specified in the
@SQ headers then this option may not be necessary.

-s number
CRAM encoding only. Specifies the number of sequecnes per slice. Defaults to
10000.

-S number
CRAM encoding only. Specifies the number of slices per container. Defaults to 1.

-t BAM and CRAM only. Specifies the number of compression or decompression threads,
adaptively shared between both encoding and decoding. Defaults to 1 (no
threading).

-V version_string
CRAM encoding only. Sets the CRAM file format version. Supported values are "2.0",
"2.1" and "3.0".

-e CRAM encoding only. Embed snippets of the reference sequence in every slice. This
means the files can be decoded without needing to specify the reference fasta file.

-x CRAM encoding only. Omit reference based compression and instead store details of
every base verbatim.

-B Experimental, encoding only. When storing quality values, bin into 8 discrete
values (plus 0), as typically used by modern Illumina instruments. (Note that the
bins may not be precisely the same ranges.)

-! CRAM v3.0 and above decoding only. Do not check CRCs. This option should only be
used when attempting to recover from a data corruption.

EXAMPLES


To convert a BAM file from stdin to CRAM on stdout, using reference MT.fa.

some_command | scramble -I bam -O cram -r MT.fa | some_command

The default CRAM output format is version 3.0, so no version needs to be specified when
converting from 2.1 to 3.0. To perform the reverse use:

scramble -V 2.1 in.cram out.cram

Use scramble online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad