split_fasta(1)
π split_fasta β okay bestie, let's split some fasta π
From the Cooperative Computing Tools manual set, section 1. β¨
πΈ NAME πΈ
split_fasta β split a fasta file according to sequence and character counts π§¬βοΈ
π SYNOPSIS π
split_fasta query_granularity character_granularity fasta_file
π¦ DESCRIPTION π¦
okay so split_fasta is a simple script that chops up a fasta file based on whatever parameters you hand it. no cap, that's the whole vibe. π
here's the tea: the script walks through the file you gave it, and it keeps generating a new sub_file called input.i every single time the contents of the previous file, input.(i-1), go over either the number of queries you set with query_granularity or the number of characters you set with character_granularity. so whichever limit gets hit first? that's the one that triggers a new file. periodt. π₯
β¨ OPTIONS β¨
literally none, bestie. this section is empty in the original and we're not about to make stuff up. the arguments in the synopsis are the whole story. π«Ά
π EXIT STATUS π
- Slays successfully β returns
zeroπ - Did not slay β returns
non-zeroπ
π ENVIRONMENT VARIABLES π
also empty. nothing to see here. go touch some grass. π
β EXAMPLES β
say you wanna split a fasta file called smallpks.fa into pieces that are no larger than 500 queries, and no piece should receive extra sequences if it goes past 10000 characters. you'd literally just do:
python split_fasta 500 10000 smallpks.fa
and that generates files input.0, input.1, ..., input.N β where N is the number of appropriately constrained files necessary to contain all the sequences in smallpks.fa. π
π COPYRIGHT π
The Cooperative Computing Tools are Copyright (C) 2005-2019 The University of Notre Dame. This software is distributed under the GNU General Public License. See the file COPYING for details. π«Ά
π SEE ALSO π
- Cooperative Computing Tools Documentation
- Makeflow User Manual
makeflow(1)makeflow_monitor(1)makeflow_analyze(1)makeflow_viz(1)makeflow_graph_log(1)starch(1)makeflow_ec2_setup(1)makeflow_ec2_cleanup(1)makeflow_ec2_estimate(1)
okay that's the whole page, bestie. this was CCTools 8.0.0 DEVELOPMENT energy, mwah. π go split something. β¨π§π
π¦ where this page comes from
- debian bookworm: coop-computing-tools 9.9-2+b4 Β· GPL-2.0-only
- ubuntu jammy: coop-computing-tools 9.9-2ubuntu3 Β· GPL-2.0-only
- ubuntu noble: coop-computing-tools 9.9-4ubuntu4 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms