Transverse and axial tubules (TATS) are an essential ingredient of the excitation-contraction machinery that allow the effective coupling of L-type Calcium Channels (LCC) and ryanodine receptors (RyR2). They form a regular network in ventricular cells, while their presence in atrial myocytes is variable regionally and among animal species We have studied the effect of variations in the TAT network using a bidomain computational model of an atrial myocyte with variable density of tubules. At each z-line the t-tubule length is obtained from an exponential distribution, with a given mean penetration length. This gives rise to a distribution of t-tubules in the cell that is characterized by the fractional area (F.A.) occupied by the t-tubules. To obtain consistent results, we average over different realizations of the same mean penetration length. To this, in some simulations we add the effect of a network of axial tubules. Then we study global properties of calcium signaling, as well as regional heterogeneities and local properties of sparks and RyR2 openings. In agreement with recent experiments in detubulated ventricular and atrial cells, we find that detubulation reduces the calcium transient and synchronization in release. However, it does not affect sarcoplasmic reticulum (SR) load, so the decrease in SR calcium release is due to regional differences in Ca 2+ release, that is restricted to the cell periphery in detubulated cells. Despite the decrease in release, the release gain is larger in detubulated cells, due to recruitment of orphaned RyR2s, i.e, those that are not confronting a cluster of LCCs. This probably provides a safeguard mechanism, allowing physiological values to be maintained upon small changes in the t-tubule density. Finally, we do not find any relevant change in spark properties between tubulated and detubulated cells, suggesting that the differences found in experiments could be due to differential properties of the RyR2s in the membrane and in the t-tubules, not incorporated in the present model. This work will help understand the effect of detubulation, that has been shown to occur in disease conditions such as heart failure (HF) in ventricular cells, or atrial fibrillation (AF) in atrial cells.