Skip to content

Commit

Permalink
Add transcript ID to annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Jan 31, 2024
1 parent 191a5b8 commit 8afed2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/local/annotation/annotation/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ process ANNOTATION {
13: 'overlap'
}
attributes = ['gene_id']
attributes = ['gene_id', 'transcript_id']
df = pd.read_csv('$intersection', sep='\\t', header=None, usecols=columns.keys())
df = df.rename(columns=columns)
Expand All @@ -52,6 +52,7 @@ process ANNOTATION {
df = df.drop(['overlap', 'length'], axis=1)
# Kee only unique gene_ids
df['gene_id'] = df['gene_id'].apply(lambda row: ','.join(row))
df['transcript_id'] = df['transcript_id'].apply(lambda row: ','.join(row))
# If 'perfect': circRNA, else EIciRNA
df['type'] = df['perfect'].apply(lambda perfect: 'circRNA' if perfect else 'EIciRNA')
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/circrna_discovery.nf
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ workflow CIRCRNA_DISCOVERY {
// FASTA WORKFLOW:
//

FASTA( ANNOTATION.out.bed, fasta )
FASTA( KEEP_FOUR_COLUMNS.out.output, fasta )

ch_versions = ch_versions.mix(FASTA.out.versions)

Expand Down

0 comments on commit 8afed2c

Please sign in to comment.