split_fasta(1)

πŸ“¦
version 9.9 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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. πŸ‘‘


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 πŸ”


okay that's the whole page, bestie. this was CCTools 8.0.0 DEVELOPMENT energy, mwah. πŸ’‹ go split something. βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from