db/python/layers/sequence.py
async def insert_many_sequencing(
        self, sequencing: List[SampleSequencing], author=None, check_project_ids=True
    ) -> None:
        """Insert many sequencing, returning no IDs"""
        if check_project_ids:
            sample_ids = set(int(s.sample_id) for s in sequencing)
            st = SampleTable(self.connection)
            project_ids = await st.get_project_ids_for_sample_ids(list(sample_ids))
            await self.ptable.check_access_to_project_ids(
                self.author, project_ids, readonly=False
            )

        return await self.seqt.insert_many_sequencing(
            sequencing=sequencing, author=author
        )
Insert many sequencing, returning no IDs
Insert many sequencing, returning no IDs
Insert many sequencing returning no IDs
async def insert_many_sequencing(
        self, sequencing: List[SampleSequencing], author=None, check_project_ids=True
    ) -> None:
        if check_project_ids:
            sample_ids = set(int(s.sample_id) for s in sequencing)
            st = SampleTable(self.connection)
            project_ids = await st.get_project_ids_for_sample_ids(list(sample_ids))
            await self.ptable.check_access_to_project_ids(
                self.author, project_ids, readonly=False
            )
        return await self.seqt.insert_many_sequencing(
            sequencing=sequencing, author=author
        )
async def insert_many_sequencing ( self , sequencing : List [ SampleSequencing ] , author = None , check_project_ids = True ) -> None : if check_project_ids : sample_ids = set ( int ( s . sample_id ) for s in sequencing ) st = SampleTable ( self . connection ) project_ids = await st . get_project_ids_for_sample_ids ( list ( sample_ids ) ) await self . ptable . check_access_to_project_ids ( self . author , project_ids , readonly = False ) return await self . seqt . insert_many_sequencing ( sequencing = sequencing , author = author )
Insert many sequencing, returning no IDs
Insert many sequencing returning no IDs
"""Insert many sequencing, returning no IDs"""
self
sequencing
List[SampleSequencing]
author
check_project_ids