How pnnl-comp-mass-spec/protein-sequence-motif-extractor works
Project type and purpose
• This is a small command-line, open-source tool written in VB.NET.
• It reads protein sequences (FASTA or tab-delimited), searches for user-specified motifs (literal or regex), and writes out matching regions in FASTA or tab format.
File structure
Top level:
• ProteinSequenceMotifExtractor.sln & .vbproj → Visual Studio solution & project.
• modMain.vb → main entry point, argument parsing & orchestration.
• FastaFileOptionsClass.vb → encapsulates command-line switches (/M, /N, /K, /X, /T).
• clsProteinSequenceMotifExtractor.vb → core motif-search logic.
• AssemblyInfo.vb & app.config → assembly metadata & .NET configuration.
• bin/ → sample input files, example runs, SQL script, and output XML.
• docs/ → Jekyll site for documentation (static site generator).
• ZippedForUpload/ → helper scripts for packaging.
README for additional insights
• Describes command-line switches and I/O formats.
• Mentions optional regex mode, flanking-residue padding, output symbol retention.
Don’t overthink—capture all logical pieces
• How app.config & optional XML options plug into the CLI Frontend.
• Jekyll docs folder as a separate “Documentation” component.