pyfishmanager.line module

class pyfishmanager.line.line(Id, genotype=None, mutation=None, chromosome=None, dateOfBirth=None, fatherId=None, motherId=None, fatherGenotype=None, motherGenotype=None, nFish=None, nMales=None, nFemales=None, nTanks=None, tankType=None, genotypedComment=None, comments=None)[source]

Bases: object

adjustDataTypes()[source]
adjustDateOfBirth(sep='/', mode='dmy')[source]
assignInt(n)[source]
assignListDataType(l, sep=', ', dtype=<type 'int'>)[source]
getDay(d, mode)[source]
getMonth(d, mode)[source]
getYear(d, mode)[source]
hasGenotype(genotype)[source]
isDead()[source]
isDoubleMutant()[source]
isGenotyped()[source]
isSingleMutant()[source]
isWildType()[source]
printLine()[source]
readFromArray(arr, header, dic, silent=True)[source]

Reads in array and assigns value using header that is then translated by dict.

Parameters:
  • arr (list) – Array from reading stock list.
  • header (list) – header of stock list.
  • dic (dict) – Dictionary of stock list.
Keyword Arguments:
 

silent (bool) – Show warning messages?

renameGenotype(oldGenotype, newGenotype)[source]