mirror of
https://github.com/biopython/biopython.git
synced 2025-10-20 13:43:47 +08:00
Move or remove import comments
This commit is contained in:
committed by
Peter Cock
parent
62d0074a4d
commit
9cdfa4f4ab
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
"""Code for calling and parsing ScanProsite from ExPASy."""
|
"""Code for calling and parsing ScanProsite from ExPASy."""
|
||||||
|
|
||||||
# Importing these functions with leading underscore as not intended for reuse
|
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
from xml.sax import handler
|
from xml.sax import handler
|
||||||
|
@ -49,8 +49,6 @@ from Bio.SeqFeature import SeqFeature
|
|||||||
from Bio.SeqFeature import SimpleLocation
|
from Bio.SeqFeature import SimpleLocation
|
||||||
|
|
||||||
from .Scanner import GenBankScanner
|
from .Scanner import GenBankScanner
|
||||||
|
|
||||||
# other Bio.GenBank stuff
|
|
||||||
from .utils import FeatureValueCleaner
|
from .utils import FeatureValueCleaner
|
||||||
|
|
||||||
# Constants used to parse GenBank header lines
|
# Constants used to parse GenBank header lines
|
||||||
|
@ -33,7 +33,6 @@ This provides nice output in PDF, SVG and postscript. If you have
|
|||||||
reportlab's renderPM module installed you can also use PNG etc.
|
reportlab's renderPM module installed you can also use PNG etc.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# reportlab
|
|
||||||
from reportlab.graphics.shapes import ArcPath
|
from reportlab.graphics.shapes import ArcPath
|
||||||
from reportlab.graphics.shapes import Drawing
|
from reportlab.graphics.shapes import Drawing
|
||||||
from reportlab.graphics.shapes import Line
|
from reportlab.graphics.shapes import Line
|
||||||
|
@ -19,7 +19,6 @@ a dictionary of colours (if passed an iterable containing the names of
|
|||||||
categories to be coloured).
|
categories to be coloured).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# standard library
|
|
||||||
import colorsys # colour format conversions
|
import colorsys # colour format conversions
|
||||||
import random # for jitter values
|
import random # for jitter values
|
||||||
from math import exp
|
from math import exp
|
||||||
|
@ -11,7 +11,6 @@ compare different types of information. The most basic example is comparing
|
|||||||
two variables in a traditional scatter plot.
|
two variables in a traditional scatter plot.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# reportlab
|
|
||||||
from reportlab.graphics.charts.lineplots import LinePlot
|
from reportlab.graphics.charts.lineplots import LinePlot
|
||||||
from reportlab.graphics.charts.markers import makeEmptyCircle
|
from reportlab.graphics.charts.markers import makeEmptyCircle
|
||||||
from reportlab.graphics.charts.markers import makeEmptySquare
|
from reportlab.graphics.charts.markers import makeEmptySquare
|
||||||
|
@ -10,10 +10,8 @@ Classes in this module are designed to hold information in a way that
|
|||||||
makes it easy to draw graphical figures.
|
makes it easy to draw graphical figures.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# reportlab
|
|
||||||
from reportlab.lib import colors
|
from reportlab.lib import colors
|
||||||
|
|
||||||
# local stuff
|
|
||||||
from Bio.Graphics.BasicChromosome import ChromosomeSegment
|
from Bio.Graphics.BasicChromosome import ChromosomeSegment
|
||||||
from Bio.Graphics.BasicChromosome import TelomereSegment
|
from Bio.Graphics.BasicChromosome import TelomereSegment
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ or anything similar.
|
|||||||
Reportlab is used for producing the graphical output.
|
Reportlab is used for producing the graphical output.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# standard library
|
|
||||||
import math
|
import math
|
||||||
|
|
||||||
from reportlab.graphics.charts.barcharts import BarChartProperties
|
from reportlab.graphics.charts.barcharts import BarChartProperties
|
||||||
@ -23,8 +22,6 @@ from reportlab.graphics.shapes import Drawing
|
|||||||
from reportlab.graphics.shapes import String
|
from reportlab.graphics.shapes import String
|
||||||
from reportlab.graphics.widgetbase import TypedPropertyCollection
|
from reportlab.graphics.widgetbase import TypedPropertyCollection
|
||||||
from reportlab.lib import colors
|
from reportlab.lib import colors
|
||||||
|
|
||||||
# reportlab
|
|
||||||
from reportlab.lib.pagesizes import letter
|
from reportlab.lib.pagesizes import letter
|
||||||
from reportlab.lib.units import inch
|
from reportlab.lib.units import inch
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@ For dealing with biological information, the package expects Biopython objects
|
|||||||
like SeqFeatures.
|
like SeqFeatures.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ReportLab imports
|
|
||||||
|
|
||||||
from itertools import islice
|
from itertools import islice
|
||||||
from math import cos
|
from math import cos
|
||||||
from math import pi
|
from math import pi
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
"""CircularDrawer module for GenomeDiagram."""
|
"""CircularDrawer module for GenomeDiagram."""
|
||||||
|
|
||||||
# ReportLab imports
|
|
||||||
|
|
||||||
from math import cos
|
from math import cos
|
||||||
from math import pi
|
from math import pi
|
||||||
from math import sin
|
from math import sin
|
||||||
@ -29,8 +27,6 @@ from reportlab.graphics.shapes import String
|
|||||||
from reportlab.lib import colors
|
from reportlab.lib import colors
|
||||||
|
|
||||||
from ._AbstractDrawer import _stroke_and_fill_colors
|
from ._AbstractDrawer import _stroke_and_fill_colors
|
||||||
|
|
||||||
# GenomeDiagram imports
|
|
||||||
from ._AbstractDrawer import AbstractDrawer
|
from ._AbstractDrawer import AbstractDrawer
|
||||||
from ._AbstractDrawer import draw_polygon
|
from ._AbstractDrawer import draw_polygon
|
||||||
from ._AbstractDrawer import intermediate_points
|
from ._AbstractDrawer import intermediate_points
|
||||||
|
@ -24,8 +24,6 @@ For drawing capabilities, this module uses reportlab to draw and write
|
|||||||
the diagram: http://www.reportlab.com
|
the diagram: http://www.reportlab.com
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# GenomeDiagram
|
|
||||||
# Builtins
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from ._Feature import Feature
|
from ._Feature import Feature
|
||||||
|
@ -21,8 +21,6 @@ For drawing capabilities, this module uses reportlab to draw and write
|
|||||||
the diagram: http://www.reportlab.com
|
the diagram: http://www.reportlab.com
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ReportLab imports
|
|
||||||
|
|
||||||
from math import sqrt
|
from math import sqrt
|
||||||
|
|
||||||
from reportlab.lib import colors
|
from reportlab.lib import colors
|
||||||
|
@ -20,8 +20,6 @@ For drawing capabilities, this module uses reportlab to draw and write
|
|||||||
the diagram: http://www.reportlab.com
|
the diagram: http://www.reportlab.com
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ReportLab imports
|
|
||||||
|
|
||||||
from math import ceil
|
from math import ceil
|
||||||
|
|
||||||
from reportlab.graphics.shapes import Drawing
|
from reportlab.graphics.shapes import Drawing
|
||||||
@ -32,8 +30,6 @@ from reportlab.graphics.shapes import String
|
|||||||
from reportlab.lib import colors
|
from reportlab.lib import colors
|
||||||
|
|
||||||
from ._AbstractDrawer import _stroke_and_fill_colors
|
from ._AbstractDrawer import _stroke_and_fill_colors
|
||||||
|
|
||||||
# GenomeDiagram imports
|
|
||||||
from ._AbstractDrawer import AbstractDrawer
|
from ._AbstractDrawer import AbstractDrawer
|
||||||
from ._AbstractDrawer import angle2trig
|
from ._AbstractDrawer import angle2trig
|
||||||
from ._AbstractDrawer import deduplicate
|
from ._AbstractDrawer import deduplicate
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
"""Deal with representations of Markov Models."""
|
"""Deal with representations of Markov Models."""
|
||||||
|
|
||||||
# standard modules
|
|
||||||
import copy
|
import copy
|
||||||
import math
|
import math
|
||||||
import random
|
import random
|
||||||
|
@ -20,13 +20,11 @@ This aims to estimate two parameters:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# standard modules
|
|
||||||
import math
|
import math
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from Bio import BiopythonDeprecationWarning
|
from Bio import BiopythonDeprecationWarning
|
||||||
|
|
||||||
# local stuff
|
|
||||||
from .DynamicProgramming import ScaledDPAlgorithms
|
from .DynamicProgramming import ScaledDPAlgorithms
|
||||||
|
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
|
@ -8,14 +8,9 @@
|
|||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
# Exceptions and Warnings
|
|
||||||
from Bio import BiopythonWarning
|
from Bio import BiopythonWarning
|
||||||
|
|
||||||
# Allowed Elements
|
|
||||||
from Bio.Data.IUPACData import atom_weights
|
from Bio.Data.IUPACData import atom_weights
|
||||||
from Bio.PDB.PDBExceptions import PDBIOException
|
from Bio.PDB.PDBExceptions import PDBIOException
|
||||||
|
|
||||||
# To allow saving of chains, residues, etc..
|
|
||||||
from Bio.PDB.StructureBuilder import StructureBuilder
|
from Bio.PDB.StructureBuilder import StructureBuilder
|
||||||
|
|
||||||
_ATOM_FORMAT_STRING = (
|
_ATOM_FORMAT_STRING = (
|
||||||
|
@ -10,8 +10,6 @@ import re
|
|||||||
from io import StringIO
|
from io import StringIO
|
||||||
from itertools import zip_longest
|
from itertools import zip_longest
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
# for typing
|
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
@ -271,13 +271,9 @@ import copy
|
|||||||
import re
|
import re
|
||||||
from collections import deque
|
from collections import deque
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
# from numpy import floor, ndarray
|
|
||||||
from numbers import Integral
|
from numbers import Integral
|
||||||
from typing import cast
|
from typing import cast
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
# for type checking only
|
|
||||||
from typing import List
|
from typing import List
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from typing import Set
|
from typing import Set
|
||||||
|
Reference in New Issue
Block a user