db/python/layers/sequence.py
async def insert_sequencing(
        self,
        sample_id,
        sequence_type: SequenceType,
        status: SequenceStatus,
        sequence_meta: Dict[str, Any] = None,
        author=None,
        check_project_id=True,
    ) -> int:
        """
        Create a new sequence for a sample, and add it to database
        """
        if check_project_id:
            st = SampleTable(self.connection)
            project_ids = await st.get_project_ids_for_sample_ids([sample_id])
            await self.ptable.check_access_to_project_ids(
                self.author, project_ids, readonly=False
            )

        return await self.seqt.insert_sequencing(
            sample_id=sample_id,
            sequence_type=sequence_type,
            status=status,
            sequence_meta=sequence_meta,
            author=author,
        )

        Create a new sequence for a sample, and add it to database
        
Create a new sequence for a sample, and add it to database
Create a new sequence for a sample and add it to database
async def insert_sequencing(
        self,
        sample_id,
        sequence_type: SequenceType,
        status: SequenceStatus,
        sequence_meta: Dict[str, Any] = None,
        author=None,
        check_project_id=True,
    ) -> int:
        if check_project_id:
            st = SampleTable(self.connection)
            project_ids = await st.get_project_ids_for_sample_ids([sample_id])
            await self.ptable.check_access_to_project_ids(
                self.author, project_ids, readonly=False
            )
        return await self.seqt.insert_sequencing(
            sample_id=sample_id,
            sequence_type=sequence_type,
            status=status,
            sequence_meta=sequence_meta,
            author=author,
        )
async def insert_sequencing ( self , sample_id , sequence_type : SequenceType , status : SequenceStatus , sequence_meta : Dict [ str , Any ] = None , author = None , check_project_id = True , ) -> int : if check_project_id : st = SampleTable ( self . connection ) project_ids = await st . get_project_ids_for_sample_ids ( [ sample_id ] ) await self . ptable . check_access_to_project_ids ( self . author , project_ids , readonly = False ) return await self . seqt . insert_sequencing ( sample_id = sample_id , sequence_type = sequence_type , status = status , sequence_meta = sequence_meta , author = author , )
Create a new sequence for a sample, and add it to database
Create a new sequence for a sample and add it to database
"""
        Create a new sequence for a sample, and add it to database
        """
self
sample_id
sequence_type
SequenceType
status
SequenceStatus
sequence_meta
Dict[str, Any]
author
check_project_id