Skip to main content
https://zenodo.org/badge/166121742.svg

feature_merge

Merge features in GFF files

Installation:

pip install feature-merge

or:

conda install feature_merge

or:

git clone https://github.com/brinkmanlab/feature_merge.git
cd feature_merge
./setup.py install

Usage:

feature_merge [-i] [-e] [-x] [-s] [-v] [-m merge|append|error|skip|replace] [-f type[,type..]].. <input1> [<input_n>..]
Accepts GFF or GTF format.
-v Print version and exit
-f Comma seperated types of features to merge. Must be terms or accessions from the SOFA sequence ontology, \"ALL\", or \"NONE\". (Can be provided more than once to specify multiple merge groups)
-i Ignore strand, merge feature regardless of strand
-s Ignore sequence id, merge feature regardless of sequence id
-x Only merge features with identical coordinates
-t Threshold distance between features to merge
-e Exclude component features from output
-m Merge strategy used to deal with id collisions between input files.
    merge: attributes of all features with the same primary key will be merged
    append: entry will have a unique, autoincremented primary key assigned to it (default)
    error: exception will be raised. This means you will have to edit the file yourself to fix the duplicated IDs
    skip: ignore duplicates, emitting a warning
    replace: keep last duplicate

See CONTRIBUTING.rst for information on contributing to this repo.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feature_merge-1.3.0.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file feature_merge-1.3.0.tar.gz.

File metadata

  • Download URL: feature_merge-1.3.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for feature_merge-1.3.0.tar.gz
Algorithm Hash digest
SHA256 164a5e90016aefa0d0f6ea6b2187f5a8eb97ec792ed1aa4df9ab7876fd4c40fe
MD5 25f345b7a2cfb0907edd9ce30fdb1a06
BLAKE2b-256 6142d5462e83b2fecfb14b97d1d7e59f47e89218e2b322db5d3fd25282e34802

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

1 file

1.2.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.2

1 file

1.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page