galaxy_trim
Galaxy · Text processing · Tabular dataTrim whole text lines or one tab-separated column using one-based inclusive character positions.
Use this operator
operator: galaxy_trim@1.0Configure remote_operator_library_urls with this repository’s origin. XStream verifies and caches artifacts by digest, sharing them across operators.
Named ports
- sourceInputbytes
UTF-8 text bytes. Column tools use the selected delimiter, without CSV quote interpretation.
Formats: Any compatible format - resultOutputbytes
Trim whole text lines or one tab-separated column using one-based inclusive character positions.
Output structure and samples are provided by operator inference.
Parameters
- columnintegerOptional
Column to trim, or zero for the entire line.
- How to fill
- Use a one-based tab-separated column number; zero trims the complete line. Missing columns fail. · Minimum: 0 · Maximum: 65536
- Example value
- 0
- Default value
- 0
- startintegerOptional
First retained character position.
- How to fill
- One-based inclusive Unicode character position; one keeps the beginning. · Minimum: 1 · Maximum: 1048576
- Example value
- 2
- Default value
- 1
- endintegerOptional
Last retained character position.
- How to fill
- One-based inclusive end; zero keeps the rest of the value. A nonzero end must be at least start. · Minimum: 0 · Maximum: 1048576
- Example value
- 5
- Default value
- 0
- ignore_prefixesstringOptional
Leading characters whose lines remain unchanged.
- How to fill
- A string of literal Unicode characters, for example >@+. Each character is a separate ignored prefix, not a regular expression. · Maximum length: 4096
- Example value
- >
- Default value
- fastqbooleanOptional
Whether to preserve alternating FASTQ identifier lines.
- How to fill
- For four-line FASTQ, preserves physical lines 1 and 3 and trims sequence and quality lines. Wrapped FASTQ is not supported.
- Example value
- false
- Default value
- false
Operator usage example
Connect the input ports to upstream steps and adjust the parameters for your data.
id: process
operator: galaxy_trim@1.0
inputs:
source: read
params:
column: 0
start: 2
end: 5
ignore_prefixes: '>'
fastq: false
Manual download
curl -fLo 'operator.jar' 'https://repo.conox.cn/v1/blobs/sha256/ce9807dc8d8b93c28256d3fdfccecb67e7bee84031b55ef466cbb5f0bcb049db/operator.jar'
sha256sum -- 'operator.jar'
curl -fLo 'GALAXY-LICENSE.txt' 'https://repo.conox.cn/v1/blobs/sha256/b5c47c1fc99e3f0f24de342af06da7bbaf8f394f1b6be0295d0d2ebcf7e874cf/GALAXY-LICENSE.txt'
sha256sum -- 'GALAXY-LICENSE.txt'Compare checksums with the manifest. Download execution and build environments from the runtime catalog ↗.
Source and licensing
See Source archive under Artifact details
- Source repository
- https://github.com/galaxyproject/tools-devteam
- Source revision
- ddbe2a1e6eded54877d786fbcfc18e594fb12932
- License (publisher declared)
- AFL-3.0 AND MIT
- License text
- Available below
- Dependency SBOM
- Dependency SBOM not provided
Build instructions
Scala adaptation sources are src/Galaxy.scala, src/Sequences.scala, src/Alignments.scala and src/GenomicText.scala. Compile against the shared SDK with the registered jvm-arrow@2.1 Scala builder; include resources/ in the thin JAR. No external libraries beyond the shared runtime. README files document upstream behavior and deliberate fixes; upstream/ retains original tools and fixtures.
Publisher-provided source, licenses and dependency information support your review. Availability and checksums do not certify safety, legal clearance, or that the executable matches the source.