Opened 9 years ago

Closed 6 years ago

#630 closed enhancement (duplicate)

allow to calculate with specified precision in ACI

Reported by: westram Owned by: westram
Priority: normal Milestone:
Component: Library (DB) Version:
Keywords: Cc:

Description (last modified by westram)

Motivation: calculate GC content with higher precision

Current workaround:

|sequence|count("gcGC");"10000";count("agctuAGCTU");"1"|mult|div;"5"|plus;"10"|div;"10"|"G+C:";div;".";rest

horrible!

To fix add:

  • div_rounded(D)
  • per_cent_rounded(D)

where D specifies the number of fractional digits.

Equivalences:

div_rounded(0)div
per_cent_rounded(0)per_cent
div_rounded(-2)dd;"100"|div;"100"|mult

Change History (2)

comment:1 Changed 9 years ago by westram

  • Description modified (diff)

comment:2 Changed 6 years ago by westram

  • Owner changed from devel to westram
  • Resolution set to duplicate
  • Status changed from new to closed

superseded by #707

Note: See TracTickets for help on using tickets.