A transcriptomewide association study can be run using the same approach as an EWAS.

Create design

## 'data.frame':    3225 obs. of  4 variables:
##  $ sampling_age: int  43 65 33 51 43 77 49 53 27 55 ...
##  $ sex         : chr  "female" "female" "male" "female" ...
##  $ smoking     : chr  "current smoker" "former-smoker" "non-smoker" "current smoker" ...
##  $ biobank_id  : chr  "LL" "LL" "LL" "LL" ...
## 'data.frame':    3225 obs. of  4 variables:
##  $ sampling_age: int  43 65 33 51 43 77 49 53 27 55 ...
##  $ sex         : chr  "female" "female" "male" "female" ...
##  $ smoking     : Factor w/ 3 levels "current smoker",..: 1 2 3 1 1 3 3 2 3 2 ...
##  $ biobank_id  : chr  "LL" "LL" "LL" "LL" ...
##  num [1:3225, 1:10] 1 1 1 1 1 1 1 1 1 1 ...
##  - attr(*, "dimnames")=List of 2
##   ..$ : chr [1:3225] "BIOS5537445E" "BIOSBFBBBED9" "BIOS3FB6E22E" "BIOSBEB8A07A" ...
##   ..$ : chr [1:10] "(Intercept)" "sampling_age" "sexmale" "smokingformer-smoker" ...
##  - attr(*, "assign")= int [1:10] 0 1 2 3 3 4 4 4 4 4
##  - attr(*, "contrasts")=List of 3
##   ..$ sex       : chr "contr.treatment"
##   ..$ smoking   : chr "contr.treatment"
##   ..$ biobank_id: chr "contr.treatment"

Inspect results

## ENSG00000174807 ENSG00000163520 ENSG00000091129 ENSG00000110881 ENSG00000173114 
##   1.619307e-242   1.317583e-178   2.537973e-156   7.460167e-156   1.148739e-133 
## ENSG00000158966 
##   1.031009e-125

## GRanges object with 49735 ranges and 1 metadata column:
##                   seqnames              ranges strand |         gene_id
##                      <Rle>           <IRanges>  <Rle> |     <character>
##   ENSG00000000003        X   99883667-99894988      - | ENSG00000000003
##   ENSG00000000005        X   99839799-99854882      + | ENSG00000000005
##   ENSG00000000419       20   49551404-49575092      - | ENSG00000000419
##   ENSG00000000457        1 169821804-169863408      - | ENSG00000000457
##   ENSG00000000460        1 169631245-169823221      + | ENSG00000000460
##               ...      ...                 ...    ... .             ...
##   ENSG00000270177        5 133562101-133563518      + | ENSG00000270177
##   ENSG00000270178        3 179521851-179522154      + | ENSG00000270178
##   ENSG00000270179       11 113239200-113239839      + | ENSG00000270179
##   ENSG00000270182        7   27197963-27198595      + | ENSG00000270182
##   ENSG00000270184       16   85817988-85821223      + | ENSG00000270184
##   -------
##   seqinfo: 25 sequences (1 circular) from an unspecified genome; no seqlengths
## ENSG00000000003 ENSG00000000005 ENSG00000000419 ENSG00000000457 ENSG00000000460 
##    7.703488e-06    3.841097e-01    3.300884e-01    3.824680e-06    6.736994e-01 
## ENSG00000000938 
##    5.524164e-14
## ENSG00000270175 ENSG00000270177 ENSG00000270178 ENSG00000270179 ENSG00000270182 
##     0.227680991     0.283357183     0.195873204     0.950020906     0.655623788 
## ENSG00000270184 
##     0.001032878
## GRanges object with 49735 ranges and 2 metadata columns:
##                   seqnames              ranges strand |         gene_id
##                      <Rle>           <IRanges>  <Rle> |     <character>
##   ENSG00000000003        X   99883667-99894988      - | ENSG00000000003
##   ENSG00000000005        X   99839799-99854882      + | ENSG00000000005
##   ENSG00000000419       20   49551404-49575092      - | ENSG00000000419
##   ENSG00000000457        1 169821804-169863408      - | ENSG00000000457
##   ENSG00000000460        1 169631245-169823221      + | ENSG00000000460
##               ...      ...                 ...    ... .             ...
##   ENSG00000270177        5 133562101-133563518      + | ENSG00000270177
##   ENSG00000270178        3 179521851-179522154      + | ENSG00000270178
##   ENSG00000270179       11 113239200-113239839      + | ENSG00000270179
##   ENSG00000270182        7   27197963-27198595      + | ENSG00000270182
##   ENSG00000270184       16   85817988-85821223      + | ENSG00000270184
##                                   pval
##                              <numeric>
##   ENSG00000000003 7.70348751228328e-06
##   ENSG00000000005    0.384109664189747
##   ENSG00000000419     0.33008844650229
##   ENSG00000000457  3.8246797680786e-06
##   ENSG00000000460     0.67369941795068
##               ...                  ...
##   ENSG00000270177    0.283357183163476
##   ENSG00000270178    0.195873204341671
##   ENSG00000270179     0.95002090589992
##   ENSG00000270182    0.655623787505276
##   ENSG00000270184  0.00103287838785457
##   -------
##   seqinfo: 25 sequences (1 circular) from an unspecified genome; no seqlengths
## GRanges object with 49735 ranges and 2 metadata columns:
##                   seqnames              ranges strand |         gene_id
##                      <Rle>           <IRanges>  <Rle> |     <character>
##   ENSG00000000003        X   99883667-99894988      - | ENSG00000000003
##   ENSG00000000005        X   99839799-99854882      + | ENSG00000000005
##   ENSG00000000419       20   49551404-49575092      - | ENSG00000000419
##   ENSG00000000457        1 169821804-169863408      - | ENSG00000000457
##   ENSG00000000460        1 169631245-169823221      + | ENSG00000000460
##               ...      ...                 ...    ... .             ...
##   ENSG00000270177        5 133562101-133563518      + | ENSG00000270177
##   ENSG00000270178        3 179521851-179522154      + | ENSG00000270178
##   ENSG00000270179       11 113239200-113239839      + | ENSG00000270179
##   ENSG00000270182        7   27197963-27198595      + | ENSG00000270182
##   ENSG00000270184       16   85817988-85821223      + | ENSG00000270184
##                                   pval
##                              <numeric>
##   ENSG00000000003 7.70348751228328e-06
##   ENSG00000000005    0.384109664189747
##   ENSG00000000419     0.33008844650229
##   ENSG00000000457  3.8246797680786e-06
##   ENSG00000000460     0.67369941795068
##               ...                  ...
##   ENSG00000270177    0.283357183163476
##   ENSG00000270178    0.195873204341671
##   ENSG00000270179     0.95002090589992
##   ENSG00000270182    0.655623787505276
##   ENSG00000270184  0.00103287838785457
##   -------
##   seqinfo: 25 sequences (1 circular) from an unspecified genome; no seqlengths
## Warning in manhattan(pdata, chr = "seqnames", bp = "start", p = "pval"): No SNP
## column found. OK unless you're trying to highlight.