Command reference
This is the documentation for the indvidual commands. The help documented here can be invoked also at the command prompt with command -h, for example to get the help for ylim:
ylim -h
Parameters in square brakets are optional and the default argument is indicated by the = sign. The syntax … indicate that the argument can be repeated multiple times. For example:
ylim min max [track_regex = .*]...
Means that ylim takes two mandatory arguments, min and max. The optional argument, track_regex, defaults to .* and can be repated multiple times.
Find
find
find [-all] [-c] [-F] regex [track]
Find the first record in track containing regex. The search for regex starts from the end of the current window (so the current window is not searched) and moves forward on the current chromosome. At the end of the current chromosome move to the next chromosomes and then restart at the start of the initial one. The search stops at the first match found. If track is omitted the first interval track found is searched.
-all: Return the region containing all the regex matches.-cMatch in CASE SENSITIVE mode. Default is case insensitive (changed in v1.12).-F: Interpret regex as a fixed, literal string instead of as a regex.
Examples:
find -all ACTB genes.gtf -> Find all the matches of ACTB. Case ignored
find -c 'ACTB gene' -> Find the first match of 'ACTB gene'. Case sensitive
Use single quotes to define patterns containing spaces.
seqRegex
seqRegex [-iupac] [-c] [regex]
Find regex in reference sequence and show matches as an additional track. Options:
regexRegex to search. If missing the seq regex track is removed.-iupacEnable the interpretation of the IUPAC ambiguity code. NB: This option simply converts IUPAC chracters to the corresponding regex.-cEnable case-sensitive matching. Default is to ignore case.
Examples:
seqRegex ACTG -> Case insensitive, actg matched
seqRegex -c ACTG -> Case sensitive, will not match actg
seqRegex -iupac ARYG -> Interpret (converts) R as [AG] and Y as [CT]
seqRegex -> Disable regex matching track
To save matches to file, see the print command. This command is ignored if the reference fasta sequence is missing.
bookmark
bookmark [-d] [-n name] [-print] [> file] [chrom:from-to]
Creates a track to save positions of interest. Without arguments, add the current position to the bookmark track. Options:
chrom:from-toBookmark this region. If chrom is omitted, use the current chromosome.-dRemove the bookmark at coordinates [chrom:from-to].-n nameUse name for this new bookmark.-printprints to screen the list of current bookmarks.> filesaves the bookmark track to file.
Examples:
bookmark -> Add the current window to bookmarks.
bookmark 100 -> Bookmark position 100 on current chrom
bookmark 100-110 -> Bookmark position 100-110 on current chrom
bookmark chr1:100 -> Bookmark position chr1:100
bookmark -d chr1:100 -> Delete bookmark at chr1:100
bookmark > books.txt -> Save to file books.txt
bookmark -print -> Show table of bookmarks
Display
translate
translate [-geneticCode=universal]
Show translation of DNA to aminoacids. Options:
-frameFrames to translate. Options: all, forward, reverse, none-codonWhich codons to show. Options: all [a], start, stop, start_and_stop [ss]-geneticCodeGenetic code to translate codons
Use -geneticCode show to view available codes. See also ncbi <https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi>
With no arguments toggle display on and off.
If a single character spans more than 1 nucleotide, only show starts (M) and stops (*). The character $ indicates a stop followed by a start.
Examples:
translate
translate -geneticCode bacterial
translate -frame none -> Turn off
grep
grep [-i = .*] [-e = ''] [-c] [-F] [-v] [track_regex = .*]...
Similar to grep command, filter for features including or excluding patterns. Options:
-i regexShow features matching this regex.-e regexExclude features matching this regex.-cMatch in CASE SENSITIVE mode. Default is case insensitive (changed in v1.12).-FInterpret regex in -i and -e as a fixed, literal string instead of as a regex.-vInvert selection: apply changes to the tracks not selected by list of track_regextrack_regexApply to tracks matched by track_regex.
NOTES
Use single quotes to delimit patterns containing spaces e.g.
-i 'ACTB gene'
Regex -i and -e are applied to the raw lines as read from source file and it is applied only to annotation tracks (GFF, BED, VCF, etc). For example:
grep -i RNA -e mRNA gtf gff
Will show the rows containing ‘RNA’ but will hide those containing ‘mRNA’, applies to tracks whose name matches ‘gtf’ or ‘gff’.
With no arguments reset to default: grep -i .* -e ^$ .* which means show everything, hide nothing, apply to all tracks.
awk
awk [-off ...] [-F sep_re] [-v VAR=var] [-V] '<script>' [track_regex = .*]...
Advanced feature filtering using awk syntax. awk offers finer control then grep to filter records in tabular format.
Awk is column oriented. Awk splits each line into a list using a given regular expression as delimiter (default delimiter is the TAB character). To access an item, i.e. a column, use the syntax $n where n is the position of the item in the list, e.g. $3 will access the third field (i.e. 3rd column). The variable $0 holds the entire line as single string.
Awk understands numbers and mathematical operators. With awk you can filter records by numeric values in one or more fields since numbers are handled as such. You can also perform arithmetic operations and filter on the results.
OPTIONS
-off track_re ...Turn off awk filtering for tracks captured by the list of regexes.-F <sep_re>Use regular expression <sep_re> as column separator. Default is ‘t’ (tab). To separate on white space use e.g. ‘b’ (backspace) or ‘s’ (any white space). Do not use ‘ ‘.-v VAR=varPass to awk script the variable VAR with value var. Can be repeated.scriptThe awk script to be executed. Must wrapped in single quotes.-VInvert selection: apply changes to the tracks not selected by list of track_regex
ADDITIONAL FEATURES
Function get(...) can indistinctly be applied to GTF, GFF, SAM records and to INFO and FORMAT fields in VCF files. Double quoting around <tag> is optional.
get(tag)on GTF
Return the value of tag attribute.
get(tag, [value_idx])on GFF
Return the value of tag attribute. If the attribute contains multiple values return the value at index value_idx (1-based). If value_idx is missing (as default), return the entire value as it is.
get(tag)on SAM
Return the value of the given sam tag.
get(tag, [value_index])on VCF
Return the value of the given INFO tag. If the tag contains multiple values, optionally return only the value at index value_index. If necessary, prepend ‘INFO/’ to tag to disambiguate it from FORMAT tags or if the header does not contain this tag. If the tag is of type ‘Flag’, return 1 if present, 0 otherwise.
get(tag, [sample_idx], [value_idx])on VCF
Return the value of the FORMAT tag for sample index sample_idx (default to 1, first sample). If the tag contains multiple values, optionally return the value at index value_idx. If necessary, prepend ‘FMT/’ to tag to disambiguate it from INFO tags or if the header does not contain this tag. If the tag is of type ‘Flag’, return 1 if present, 0 otherwise.
getAlnEnd()on SAM
Returns the position of the alignment end. For example, select reads ending after position 1000`here <http://jonasjacek.github.io/colours/>`_
Example:
colourTrack cyan1 ts.*gtf ts.*bam
colourTrack 40 <- By INT
colourTrack darkv <- Same as darkviolet
hideTitle
hideTitle [-on | -off] [-v] [track_regex = .*]...
Set the display of the title line matched by track_regex. Without argument -on or -off toggle between the two modes for all tracks matched by the list of regexes.
-v Invert selection: apply changes to the tracks not selected by list of track_regex
genotype
genotype [-n 10] [-s .*] [-r pattern rplc] [-f expr] [-v] [track_regex = .*]...
Customise the genotype rows printed under the VCF tracks.
-n Display up to this many samples (rows). -1 for no limit.
-s Select samples matching this regex.
-r Edit sample names to replace <pattern> with <replacement>. Names are edited only for display. To completely hide names replace with empty string -r .* ''. To restore original names use a regex matching nothing e.g. ‘^$’
-f Filter samples using an expression in Python syntax. See below for details.
-v Invert selection: apply changes to the tracks not selected by list of track_regex
FILTER EXPRESSION
Samples can be filtered by applying arbitrary expressions to the VCF records. The VCF fields of a sample are accessed using the syntax {TAG}.
TAG is one of the fixed fields: CHROM, POS, ID, REF, ALT, QUAL, FILTER, or one of the INFO or FORMAT tags. In case of ambiguity, the prefix ‘INFO/’ or ‘FMT/’ should be used to identify the target tag (e.g. {FMT/ID} will access the ID field in FORMAT rather than the ID in the header).
The value(s) in a TAG are converted to the appropriate data type (Integer, String, etc). Tags holding more than one value are returned as arrays whose individual values should be accessed using the syntax [index]. E.g. {ALT}[0] will access the first alternate allele.
Note that the ALT and FILTER fields are always arrays, even if only one allele is present.
After substitution of the {TAG} placeholders with the actual values, the expression string is evaluated as Python syntax so any valid Python code is allowed including the common operators: > < == != && ||.
Importantly, the result of the expression must be a boolean, i.e. it must evaluate to true or false.
For each sample, the expression is evaluated for each VCF record in the current window and if ANY record returns true, the sample is filtered-in. To apply the filter to specific records either include only those records using e.g. commands grep or awk or make the expression more selective, e.g. by including the POS field.
As elsewhere in ASCIIGenome, if the argument (expression) contains spaces it must be enclosed in single quotes and single quotes inside the expression must be escaped. To remove the expression filter pass a blank string as argument -f ' ' (note the white space between single quotes).
The following tags can be used to filter on the genotype. When substituted, they evaluate to true according to the sample genotype. Testing the {GT} tag, e.g. {GT} == "0/1", achieves a similar result and gives more control but using these tags is less error prone:
{HOM}genotype is homozygote.{HET}genotype is heterozygote.{HOM_REF}genotype is homozygote reference.{HOM_VAR}homozygote for an ALT allele.{HET_NON_REF}heterozygote and all alleles are non-reference.{CALLED}at least one allele is not a missing value (‘.’ in vcf).{NO_CALL}No allele is called (e.g. it appears as ./. in vcf).{MIXED}genotype is comprised of both calls and no-calls.
Examples of filters:
genotype -f '{DP} > 30' -> Display samples having DP > 30
genotype -f '{DP} > 30 and {ID} == "rs99"' -> Select also for ID
genotype -f '{FMT/XA} > 30 and {INFO/XA} == "foo"' -> Disambiguate tags
genotype -f '{ALT}[0] == "C"' -> Access the first ALT allele
genotype -f '{HOM_REF} == False' -> Discard if homozygote ref.
editNames
editNames [-t] [-v] <pattern> <replacement> [track_re=.*]...
Edit track names by substituting regex pattern with replacement. Pattern and replacement are required arguments, the default regex for track is ‘.*’ (i.e. all tracks).
-t(test) flag shows what renaming would be done without actually editing the names.-vInvert selection: apply changes to the tracks not selected by list of track_regex-FInterpret pattern as fixed strings, not regular expressions
Use ‘’ (empty string in single quotes) to replace pattern with nothing. Examples: Given track names ‘fk123_hela.bam#1’ and ‘fk123_hela.bed#2’:
editNames fk123_ '' -> hela.bam#1, hela.bed#2
editNames fk123_ '' bam -> hela.bam#1, fk123_hela.bed#2
editNames _ ' ' -> fk123 hela.bam#1, fk123 hela.bed#2
editNames ^.*# cells -> cells#1, cells#2
editNames ^ xx_ -> xx_fk123_hela.bam#1, xx_fk123_hela.bed#2 (add prefix)
addHeader
addHeader [-c] [-a] [-b] [-off] [-v] <header> [track_re=.*]...
Add header to track(s). Example use case: You have several tracks sorted in a meanignful way (say WT and CTRL tracks). Add a header to the first track of each group for ease of reading. Useful also to add one or more blank lines for more separation between tracks.
-cColour for the header - see :code: colourTrack -h for options-aHeader alignment. Either a number between 0 (left-align) and 1 (right-align) or a keyword left, center, right. Default is 0.5 (center-align)-bDo not make header in boldface-offRemove header-vInvert selection: apply changes to the tracks not selected by list of track_regex<header>Header text. To change the text format and leave the text as is, use-. Use{-}as placeholder of current header; e.g. add stars around existing header:** {-} **
Use :code: - for <header> if you want to change the format but leave the text as is. Examples:
addHeader WT > Header 'WT' to all tracks
addHeader '' > Add a blank line before each track
addHeader -c red 'WILD TYPE' #1 > Header in red before track #1
addHeader 'WILD\nTYPE' > Span multiple lines
addHeader -c cyan -a left > Only change colour and alignment
addHeader -c cyan -a left - #1 > Only change colour and alignment in #1 (note '-' before #1)
addHeader '** {-} **' > Add decorative stars around existing header
dataCol
dataCol [-v] [index = 4] [track_regex = .*]...
Select data column for bedgraph tracks containing regex. First column has index 1. This command applies only to tracks of type bedgraph.
-v Invert selection: apply changes to the tracks not selected by list of track_regex
For example, use column 5 on tracks containing #1 and #3:
dataCol 5 #1 #3
print
print [-n INT] [-full] [-off] [-round INT] [-hl re] [-esf] [-v] [-sys CMD] [track_regex = .*]... [>|>> file]
Print lines for the tracks matched by track_regex. Useful to show exactly what features are present in the current window. Features are filtered in/out according to the grep command. Options:
track_regexApply to tracks matched by one or more of these regexes.-n INT=10Print up to this many lines, default 10. No limit if < 0.-clipClip lines longer than the screen width. This is the default.-fullWrap lines longer than the screen width.-round INTRound numbers to this many decimal places. What constitutes a number is inferred from context. Default 3, do not round if < 0.-hl regexHighlight substrings matching regex. If regex matches a FORMAT tag in a VCF record, highlight the tag itself and also the sample values corresponding to that tag. Alternatively, regex may be a comma separated list of column indexes to highlight. Indexes are recognized by the $ prefix. E.g.-hl '$1, $3, $10'will highlight columns 1, 3, 10.-esfExplain SAM Flag. Add to SAM flag an abbreviated description.-offTurn off printing.-vInvert selection: apply changes to the tracks not selected by list of track_regex-sysParse the raw output with the given system command(s). Use-sys nullto turn off the system commands. These commands are executed bybashso bash is expected to be available on the system. The commands should read from stdin and write to stdout, this is usually the case for Unix commands likecut,sort, etc. The command string must be enclosed in single quotes, single quotes inside the string can be escaped as ' (backslash-quote)>and>>Write output to file. > overwrites and >> appends to existing file. The %r variable in the filename is expanded to the current genomic coordinates. Writing to file overrides options -n and -off, lines are written in full without limit.
Without options toggle tracks between OFF and CLIP mode.
Examples:
print -> Print all tracks, same as `print .*`
print -off -> Turn off printing for all tracks
print genes.bed >> genes.txt -> Append features in track(s) 'genes.bed' to file
print -sys 'cut -f 1-5 | sort' -> Select columns with `cut` and then sort
print -sys null -> Turn off the execution of sysy commands
Alignments
readsAsPairs
readsAsPairs [-on | -off] [-v] [track_regex = .*]...
- Show SAM records as pairs.
If set, properly paired reads in the current window are showed joined up by tildes.
-on|-offTurn on/off the pairing mode. Or toggle between the two modes if none of these flags is set.-vInvert selection: apply changes to the tracks not selected by list of track_regex[track_regex = .*]...Apply to read tracks captured by these regexes.
filterVariantReads
filterVariantReads [-r from/to] [-all] [-v] [track_regex = .*]...
- Filter reads containing a variant in the given interval.
filterVariantReadsselects for reads where the read sequence mismatches with the reference sequence in the given interval on the current chromosome. This command is useful to inspect reads supporting a putative alternate allele at a variant site.
NOTES
filterVariantReadsrequires a reference fasta sequence to be set, e.g. via the command line option-fa <ref.fa>or with commandsetGenome.The CIGAR string determines a mismatch between read and reference. Consequently, there may be an inconsistency between variant positions in reads and positions in a VCF file if some normalization or indel realignment has been performed by the variant caller that generated the VCF. In such cases consider enlarging the target interval.
The position (POS) of deletions in VCF files refer to the first non-deleted base on the reference. Therefore, the interval to
-rshould be POS+1 to filter for reads supporting a deletion (but see also the previous point).
OPTIONS
-r regionSelect reads mismatching in this interval. region can be given as: a single position, a position plus and/or minus an offset, an interval. See examples.-allReturn all reads intersecting the-rinterval, not just the variant ones.-vInvert selection: apply changes to the tracks not selected by list of track_regex[track_regex = .*]...Apply to read tracks captured by these regexes.
EXAMPLES:
filterVariantReads -r 1000+10 <- From 1000 to 1010
filterVariantReads -r 1000-10 <- From 990 to 1000
filterVariantReads -r 1000+/-10 <- From 990 to 1010
filterVariantReads -r 1000:1100 <- From 1000 to 1100
filterVariantReads -r 1000 vars.*vcf <- Apply to tracks captured by `vars.*vcf`
filterVariantReads <- Remove filter for all tracks
rpm
rpm [-on | -off] [-v] [track_regex = .*]
Set display to reads per million for BAM and TDF files.
-on | -offSet mode on/off. Without arguments toggle between on and off.-vInvert selection: apply changes to the tracks not selected by list of track_regextrack_regexList of regexes to capture target tracks.
samtools
samtools [-f INT=0] [-F INT=4] [-q INT=0] [-v] [track_re = .*] ...
Apply samtools filters to alignment tracks captured by the list of track regexes. Useful for stranded RNA-Seq and BS-Seq: bit flag 4096 is selects reads mapping to TOP STRAND.
-FFilter out flags with these bits set. NB: 4 is always set.-fRequire alignment to have these bits sets.-qRequire alignments to have MAPQ >= than this.-vInvert selection: apply changes to the tracks not selected by list of track_regex
Examples:
samtools -q 10 -> Set mapq for all tracks. -f and -F reset to default
samtools -F 1024 foo bar -> Set -F for all track containing re foo or bar
samtools -f 4096 -> Select TOP STRAND reads
samtools -F 4096 -> Select BOTTOM STRAND reads
samtools -> Reset all to default.
BSseq
BSseq [-on | -off] [-v] [track_regex = .*]...
Set bisulfite mode for read tracks matched by regex. In bisulfite mode, the characters M and m mark methylated bases (i.e. unconverted C to T) and U and u are used for unmethylated bases (i.e. C converted to T). Upper case is used for reads on forward strand, small case for reverse.
-on | -offSet mode. Without arguments toggle between on and off.-vInvert selection: apply changes to the tracks not selected by list of track_regextrack_regexList of regexes to capture target tracks.
Ignored without reference fasta sequence.
General
setGenome
setGenome fasta|bam|genome
Set genome and reference sequence. The genome, i.e. the list of contig names and sizes, can be extracted from the fasta reference, from a bam file or from a genome identifier (e.g. hg19). If a fasta file is used also the reference sequence becomes available.
Without arguments, set the genome using the last opened fasta file, if any and if compatible with the current tracks.
setConfig
setConfig <file|tag> | <key> <value>
Set configuration arguments.
If only one argument is given then the entire settings are replaced. Configuration can be set with one of the built-in themes: ‘black_on_white’, ‘white_on_black’, ‘metal’. Alternatively, configuration can be read from file. For examples files see https://github.com/dariober/ASCIIGenome/blob/master/resources/config/
If two arguments are given, they are taken as a key/value pair to reset.
Examples:
setConfig metal
setConfig /path/to/mytheme.conf
setConfig max_reads_in_stack 20000 <- Reset this param only
Parameters and current settings:
background 231 # Background colour
foreground 0 # Foreground colour
seq_a 12 # Colour for nucleotide A
seq_c 9 # Colour for nucleotide C
seq_g 2 # Colour for nucleotide G
seq_t 11 # Colour for nucleotide T
seq_other 0 # Colour for any other nucleotide
shade_low_mapq 249 # Colour for shading reads with low MAPQ
low_mapq 5 # Shade reads below this MAPQ
methylated_foreground 231 # Foreground colour for methylated C
unmethylated_foreground 231 # Foreground colour for unmethylated C
methylated_background 9 # Background colour for methylated C
unmethylated_background 12 # Background colour for unmethylated C
title_colour 0 # Default Colour for titles
feature_background_positive_strand 147 # Colour for features on forward strand
feature_background_negative_strand 224 # Colour for features on reverse strand
feature_background_no_strand 249 # Colour for features without strand information
footer 12 # Colour for footer line
chrom_ideogram 0 # Colour for chromosome ideogram
ruler 0 # Colour for ruler
max_reads_in_stack 2000 # Max number of reads to accumulate when showing read tracks
shade_baseq 13 # Shade read base when quality is below this threshold
shade_structural_variant 33 # Background colour for reads suggesting structural variation or 'false' for no shading
highlight_mid_char true # Highlight mid-character in read tracks?
nucs_as_letters true # Show read nucleotides as letters at single base resolution?
show_soft_clip false # NOT IN USE YET - Show soft clipped bases in read tracks?
stop_codon 9 # Colour for stop codon
start_codon 2 # Colour for start codon
codon 249 # Colour for codons other than start and stop
explainSamFlag
explainSamFlag INT [INT ...]
Explain the list of bitwise SAM flags. Decode one or more sam flags to human readable form and print them as a table. Similar to https://broadinstitute.github.io/picard/explain-flags.html
show
show <arg>
Show or set features to display. The argument arg takes the following choices:
genome: Show chromosomes sorted by size-n int: Show up to int number of chromosomes or -1 for no limit (default 50)
trackInfo: Show information on tracks.gruler: Toggle the display of the genomic coordinates as ruler.pctRuler: Toggle the display of the column number of the terminal (useful for navigation within the current genomic window).
arg can be just a prefix of the argument name, e.g. show ge will be recognized as show genome.
recentlyOpened
recentlyOpened [-grep = .*]
List recently opened files. Files are listed with their absolute path.
-n INTReturn only the last INT files.-grep <pattern>Filter for files (strings) matching pattern. Use single quotes to define patterns containing spaces, e.g.-grep 'goto chr1'.
open
open [files | URLs | indexes]...
Add tracks from local or remote files. The list of files to open can be a list of file names or URLs. For local files, glob characters (wildcard) are expanded as in Bash (but note that currently globs in directory names are not expanded.)
Alternatively, the files to open can be given as numeric indexes of recently opened files (see command recentlyOpened). The last opened file has index 1, the second last 2, etc.
Examples:
open peaks.bed genes.*.gtf <- Note use of wildecard
open http://remote/host/peaks.bed <- From URL
open 1 2 3 <- The three most recent files
reload
reload [track_regex = .*]...
Reload track files. reload is useful when an input track file is edited by external actions and you want to reload it in the current session. This is easier than dropping and re-opening tracks with dropTracks … && open … since track formattings and filters are preserved.
A track is dropped if it cannot be reloaded, for example when the sequence dictionary has become incompatible with the current one.
Examples:
reload <- reload all tracks
reload .bam <- reload files matching '.bam'
dropTracks
dropTracks [-t] [-v] track_regex [track_regex]...
Drop tracks matching any of the listed regexes. * -t (test) flag only shows which tracks would be removed but do not remove them.
-vInvert selection: apply changes to the tracks not selected by list of track_regex
Examples:
dropTracks bam
orderTracks
orderTracks [track_regex]...
Reorder tracks according to the list of regexes or sort by name. Not all the tracks need to be listed, the missing ones follow the listed ones in unchanged order. Without arguments sort track by tag name. For example, given the track list: [hela.bam#1, hela.bed#2, hek.bam#3, hek.bed#4]:
orderTracks #2 #1 -> [hela.bed#2, hela.bam#1, hek.bam#3, hek.bed#4]
orderTracks bam bed -> [hela.bam#1, hek.bam#3, hela.bed#2, hek.bed#4]
orderTracks . bam -> 'bam' tracks go last
orderTracks -> name sort [hela.bam#1, hela.bed#2, hek.bam#3, hek.bed#4]
posHistory
posHistory [-n INT=10]
List the visited positions. Recorded positions include the current and the previous sessions of ASCIIGenome.
-n INT Show only the last INT positions. Show all if <= 0.
history
history [-n INT] [-grep = .*]
List the executed commands. Commands executed in previous sessions of ASCIIGenome are in /.asciigenome_history
-n INTReturn only the last INT commands.-grep <pattern>Filter for commands (strings) matching pattern. Use single quotes to define patterns containing spaces, e.g.-grep 'goto chr1'
save
save [>>] [filename = chrom_start_end.txt']
Save screenshot to file as text or pdf format. The default file name is generated from the current coordinates and the default format is plain text. If the file name has extension ‘.pdf’ then save as pdf. To append to an existing file use >>. The string %r in the file name is replaced with the current coordinates. Examples:
save mygene.txt -> Save to mygene.txt as text
save >> mygene.txt -> Append to mygene.txt
save -> Save to chrom_start-end.txt as text
save .pdf -> Save to chrom_start-end.pdf as pdf
save mygene.%r.pdf -> Save to mygene.chr1_100-200.pdf as pdf
sys
sys [-L] command
Execute a system command. By default the given command is executed as a string passed to Bash as bash -c string. With the -L option the command is executed literally as it is. Note that with the -L option globs are not expanded by Java. Examples:
sys pwd <- Print working directory name
sys ls *.bam <- List files ending in .bam
sys bcftools view -h vars.vcf.gz <- Print vcf header
q
q
Quit
h
h
help, h, -h, and ? show this help.
For help on individual commands use one of:
command -h
?command
help command
e.g. ylim -h
Session
sessionOpen
sessionOpen [-f session.yml] [sessionName|index]
Open a previous session Since a session file can hold multiple sessions, choose the session to open by name or index. Without arguments, reproduce the settings from the last time ASCIIGenome exited regardless of whether those settings were savedin a session.
-fRead sessions from this yaml file. Default:/.asciigenome/session.yamlsessioName|indexSession name or index to open. The index refers to sessions in reverse chronological order (1: last opened, 2: second last, etc). Default: 1
Examples:
sessionOpen // Reproduce the settings from last exit of ASCIIGenome
sessionOpen 1 // Last session saved in default session file
sessionOpen -f ss.yml myTracks // Open `myTracks` from ss.yml
sessionSave
sessionSave [-f session.yml] [sessionName]
Save current session Note a session file can hold multiple sessions. I.e., there’s no need to save each session to a separate file. Execute sessionList to get the current session file and name.
-fSave session to this file. Default:/.asciigenome/session.yamlsessioNameIf given, save session with this name (equivalent to a typical “save as” command). Otherwise save to the current session (equivalent to the usual Ctrl+S shortcut)
Examples:
sessionSave // Save to current session, if any has been opened
sessionSave mySession // Save to default session file
sessionSave -f ss.yml mySession // Save to ss.yml
sessionList
sessionList [-f session.yml]
List sessions in file and report current session file and name. Sessions are listed in reverse chronological order (i.e., most recent last)
-fList sessions in this file. Default:/.asciigenome/session.yaml-nList up to this many sessions. Default 10
sessionDelete
sessionDelete [-f session.yml] <sessionName>
Delete session by name.
* -f List sessions in this file. Default: /.asciigenome/session.yaml
sessionNameSession name to delete