BP_MASK_BY_SEARCH(1p)

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

✨ BP_MASK_BY_SEARCH(1p) ✨

okay bestie, gather round, because this is the bp_mask_by_search page from the User Contributed Perl Documentation and it's lowkey a banger πŸ’–


🌸 NAME 🌸

bp_mask_by_search β€” mask sequence(s) based on its alignment results


πŸŽ€ SYNOPSIS πŸŽ€

bp_mask_by_search.pl -f blast genomefile blastfile.bls > maskedgenome.fa

πŸ¦‹ DESCRIPTION πŸ¦‹

So the whole vibe here is: you take the significant alignments of one sequence and you use them to mask another sequence. Periodt. πŸ’…

You gotta hand over two things: the report file, and the entire sequence data that you want to mask. No half-measures, she wants the whole thing.

By default, this tool assumes you did a TBLASTN (or a TFASTY), and it will try and mask the hit sequence β€” assuming you've provided the sequence file for the hit database. That's the default assumption, okay?

But if you wanna do the reverse and mask the query sequence instead? Just specify the -t/--type query flag and you're golden ✨

⚠️ real talk: this is going to read the whole sequence file into memory, so for large genomes this may fall over. 😭

She's using DB_File to prevent keeping everything in memory β€” one solution is to split the genome into pieces. But listen closely: do that BEFORE you run the DB search though. You want to use the exact file you BLASTed with as input to this program. iykyk 🧚

Below the double dash (--) options are of the form --format=fasta or --format fasta or you can just say -f fasta. All three, she's flexible like that.

By -f/--format I mean either are acceptable options. The =s or =n or =c specify these arguments expect a 'string'.


πŸ‘‘ OPTIONS πŸ‘‘

  • -f/--format=s β€” Search report format (fasta,blast,axt,hmmer,etc)
  • -sf/--sformat=s β€” Sequence format (fasta,genbank,embl,swissprot)
  • --hardmask β€” (booelean) Hard mask the sequence with the maskchar. [default is lowercase mask] β€” and yes, it literally says "booelean" in the source, we don't gatekeep typos here πŸ’€
  • --maskchar=c β€” Character to mask with. [default is N], change to 'X' for protein sequences
  • -e/--evalue=n β€” Evalue cutoff for HSPs and Hits, only mask sequence if alignment has specified evalue or better
  • -o/--out/
  • --outfile=file β€” Output file to save the masked sequence to.
  • -t/--type=s β€” Alignment seq type you want to mask, the 'hit' or the 'query' sequence. [default is 'hit']
  • --minlen=n β€” Minimum length of an HSP for it to be used in masking [default 0]
  • -h/--help β€” See this help information

πŸ’œ AUTHOR - Jason Stajich πŸ’œ

Jason Stajich, jason-at-bioperl-dot-org.


and that's the whole page, bestie!! 🫢 this one's running on perl v5.32.1 and it was stamped 2021-08-15, so go forth and mask responsibly, mwah πŸ’…πŸ’–πŸŒΈ

πŸ“¦ where this page comes from