Skip to content

Wrong parameter in FuzznucCommandline (Bio/Emboss/Applications.py) #1451

Open

Description

@qifei9

Setup

I am reporting a problem with Biopython version, Python version, and operating
system as follows:

>>> import sys; print(sys.version)
3.6.3 (default, Oct 24 2017, 14:48:20) 
[GCC 7.2.0]
>>> import platform; print(platform.python_implementation()); print(platform.platform())
CPython
Linux-4.13.12-2-ck-haswell-x86_64-with-arch
>>> import Bio; print(Bio.__version__)
1.70

Problem

In FuzznucCommandline of Bio/Emboss/Applications.py, the parameter mismatch should be pmismatch and it is not is_required.

ref: http://emboss.bioinformatics.nl/cgi-bin/emboss/help/fuzznuc

Activity

  1. peterjc commented on Nov 14, 2017

    @peterjc
    Member

    Confirmed in semi-recent EMBOSS,

    $ fuzznuc -help -verbose
    Search for patterns in nucleotide sequences
    Version: EMBOSS:6.5.7.0
    
       Standard (Mandatory) qualifiers:
      [-sequence]          seqall     Nucleotide sequence(s) filename and optional
                                      format, or reference (input USA)
       -pattern            pattern    The standard IUPAC one-letter codes for the
                                      nucleotides are used.
                                      The symbol 'n' is used for a position where
                                      any nucleotide is accepted.
                                      Ambiguities are indicated by listing the
                                      acceptable nucleotides for a given position,
                                      between square parentheses '[ ]'. For
                                      example: [ACG] stands for A or C or G.
                                      Ambiguities are also indicated by listing
                                      between a pair of curly brackets '{ }' the
                                      nucleotides that are not accepted at a given
                                      position. For example: {AG} stands for any
                                      nucleotides except A and G.
                                      Each element in a pattern is separated from
                                      its neighbor by a '-'. (Optional in
                                      fuzznuc).
                                      Repetition of an element of the pattern can
                                      be indicated by following that element with
                                      a numerical value or a numerical range
                                      between parenthesis. Examples: N(3)
                                      corresponds to N-N-N, N(2,4) corresponds to
                                      N-N or N-N-N or N-N-N-N.
                                      When a pattern is restricted to either the
                                      5' or 3' end of a sequence, that pattern
                                      either starts with a '<' symbol or
                                      respectively ends with a '>' symbol.
                                      A period ends the pattern. (Optional in
                                      fuzznuc).
                                      For example, [CG](5)TG{A}N(1,5)C
      [-outfile]           report     [*.fuzznuc] Output report file name (default
                                      -rformat seqtable)
    
       Additional (Optional) qualifiers: (none)
       Advanced (Unprompted) qualifiers:
       -complement         boolean    [N] Search complementary strand
    
       Associated qualifiers:
    
       "-sequence" associated qualifiers
       -sbegin1            integer    Start of each sequence to be used
       -send1              integer    End of each sequence to be used
       -sreverse1          boolean    Reverse (if DNA)
       -sask1              boolean    Ask for begin/end/reverse
       -snucleotide1       boolean    Sequence is nucleotide
       -sprotein1          boolean    Sequence is protein
       -slower1            boolean    Make lower case
       -supper1            boolean    Make upper case
       -scircular1         boolean    Sequence is circular
       -sformat1           string     Input sequence format
       -iquery1            string     Input query fields or ID list
       -ioffset1           integer    Input start position offset
       -sdbname1           string     Database name
       -sid1               string     Entryname
       -ufo1               string     UFO features
       -fformat1           string     Features format
       -fopenfile1         string     Features file name
    
       "-pattern" associated qualifiers
       -pformat            string     File format
       -pmismatch          integer    Pattern mismatch
       -pname              string     Pattern base name
    
       "-outfile" associated qualifiers
       -rformat2           string     Report format
       -rname2             string     Base file name
       -rextension2        string     File name extension
       -rdirectory2        string     Output directory
       -raccshow2          boolean    Show accession number in the report
       -rdesshow2          boolean    Show description in the report
       -rscoreshow2        boolean    Show the score in the report
       -rstrandshow2       boolean    Show the nucleotide strand in the report
       -rusashow2          boolean    Show the full USA in the report
       -rmaxall2           integer    Maximum total hits to report
       -rmaxseq2           integer    Maximum hits to report for one sequence
    
       General qualifiers:
       -auto               boolean    Turn off prompts
       -stdout             boolean    Write first file to standard output
       -filter             boolean    Read first file from standard input, write
                                      first file to standard output
       -options            boolean    Prompt for standard and additional values
       -debug              boolean    Write debug output to program.dbg
       -verbose            boolean    Report some/full command line options
       -help               boolean    Report command line options and exit. More
                                      information on associated and general
                                      qualifiers can be found with -help -verbose
       -warning            boolean    Report warnings
       -error              boolean    Report errors
       -fatal              boolean    Report fatal errors
       -die                boolean    Report dying program messages
       -version            boolean    Report version number and exit
    
    
    

    I would guess their command line API changed at some point... do you happen to have older copies of EMBOSS installed or easily available to check that?

  2. qifei9 commented on Nov 14, 2017

    @qifei9
    ContributorAuthor

    I do not have older version of Emboss installed. However, if their website is telling the truth, it is pmismatch at least since Emboss version 6.0.

    see: http://emboss.sourceforge.net/apps/release/6.0/emboss/apps/fuzznuc.html

  3. peterjc commented on Nov 14, 2017

    @peterjc
    Member

    Thanks for checking, if this was an EMBOSS change it was a long time ago. Your changes should be fine then - the risk of breaking someone's Python script seems minimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions